From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B106C433E9 for ; Mon, 8 Mar 2021 11:51:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 005EC651FC for ; Mon, 8 Mar 2021 11:51:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231651AbhCHLvW (ORCPT ); Mon, 8 Mar 2021 06:51:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231362AbhCHLvB (ORCPT ); Mon, 8 Mar 2021 06:51:01 -0500 Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1155C06174A for ; Mon, 8 Mar 2021 03:51:01 -0800 (PST) Received: by mail-ot1-x330.google.com with SMTP id h22so8869485otr.6 for ; Mon, 08 Mar 2021 03:51:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JbNCPfQ/roqFMvfDVCK/GyRFnn05PPWL4s16p+iljKg=; b=PS5NN6DUCqMOBqLWOEzdWpTZ1Sa2R2WYZiakOxUSdiElm9ZJ51RzEwsj0Ri+e5mWB5 Z9QPG1HJ1heIOFlZ8fKe9ous/pi9AthiInarCnWhq3jNCckqZxQhdVl3RfMwTSZlY5lG g8EujUVi0mv784njAV974o/XliCTbz2kP0WzBue966M2Ph26LxCmuaMTMeX3Wyr7Shi2 3U0Lf60BVYrWwo++9+QTKa1uy/lybK/U62qYhPklSlO1fuZLz0oDmm9PsP05qLSWsxSc hkwEY+R8vWqQb9uTTIx4pv3ne9D6w/9PJlq67hJ7MRdIxNszM1NQI7n0F6pLsTyo+FZ1 lUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JbNCPfQ/roqFMvfDVCK/GyRFnn05PPWL4s16p+iljKg=; b=n1xyV87o1pZgMm7Ws8lrGnO3qF6fkOZrv5UkjP/VF3EW6lpwAvDHzTVZ8TcrMs14xW H2s/sffoKGr4317p5LBzhp6eEqU6dsRzPouzTDKuIGp8LBd1hfCTgAmIPnvshOcnGTnq DFcRbfDPcPnW3OgU3FbTAlyS1erxBQ8htZJAfADVdtSYAp+JzrRaaCjDuA8h/yMH/bm+ 5h3ouu54VBPrly2QYXgLBJdGzMYNf397dxy6toaRoP8ZH8VX/Sr9cSbPmyk2skZj0Y5w tmdOaoFgbv7UqdQHLkoadbyTK+Jl2Am2sWDXhhEVye6sjOECQ91yjG3D2T8DWg2zBpyL aYJA== X-Gm-Message-State: AOAM530ApEMCtzre+F4r/WU5Ds3ddAy9xsjexExLdEGOvOe0vRXODNXg sh0cfBENqsBI2xtxCEcSRbJya7HEA7CtfYXZGIU9mQ== X-Google-Smtp-Source: ABdhPJxLE3Qt3UCz8nFg87Y8EMVRDCfGsHytH1+xHqDhtFTMg/s/NlcmgHBCSeyLFs9ITxbykj8dOdiW0wmu2C2pqEU= X-Received: by 2002:a9d:644a:: with SMTP id m10mr19849951otl.233.1615204260958; Mon, 08 Mar 2021 03:51:00 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Marco Elver Date: Mon, 8 Mar 2021 12:50:49 +0100 Message-ID: Subject: Re: [PATCH 3/5] kasan, mm: integrate page_alloc init with HW_TAGS To: Andrey Konovalov Cc: Alexander Potapenko , Andrew Morton , Catalin Marinas , Will Deacon , Vincenzo Frascino , Dmitry Vyukov , Andrey Ryabinin , Peter Collingbourne , Evgenii Stepanov , Branislav Rankov , Kevin Brodsky , kasan-dev , Linux ARM , Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 8 Mar 2021 at 12:35, Marco Elver wrote: [...] > Could we instead add a static inline helper to , e.g. > kasan_supports_init() or so? Hmm, KASAN certainly "supports" memory initialization always. So maybe "kasan_has_accelerated_init()" is more accurate? I leave it to you to decide what the best option is. Thanks, -- Marco From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1A7FC433E6 for ; Mon, 8 Mar 2021 11:51:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 59F3965126 for ; Mon, 8 Mar 2021 11:51:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 59F3965126 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D1B6E8D0028; Mon, 8 Mar 2021 06:51:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CCABA8D001D; Mon, 8 Mar 2021 06:51:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B6B158D0028; Mon, 8 Mar 2021 06:51:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0139.hostedemail.com [216.40.44.139]) by kanga.kvack.org (Postfix) with ESMTP id 9E0DF8D001D for ; Mon, 8 Mar 2021 06:51:02 -0500 (EST) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 4B92F1E0F for ; Mon, 8 Mar 2021 11:51:02 +0000 (UTC) X-FDA: 77896540764.18.0F29C85 Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) by imf13.hostedemail.com (Postfix) with ESMTP id 361E9E0011F9 for ; Mon, 8 Mar 2021 11:51:00 +0000 (UTC) Received: by mail-ot1-f48.google.com with SMTP id r24so756544otp.12 for ; Mon, 08 Mar 2021 03:51:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JbNCPfQ/roqFMvfDVCK/GyRFnn05PPWL4s16p+iljKg=; b=PS5NN6DUCqMOBqLWOEzdWpTZ1Sa2R2WYZiakOxUSdiElm9ZJ51RzEwsj0Ri+e5mWB5 Z9QPG1HJ1heIOFlZ8fKe9ous/pi9AthiInarCnWhq3jNCckqZxQhdVl3RfMwTSZlY5lG g8EujUVi0mv784njAV974o/XliCTbz2kP0WzBue966M2Ph26LxCmuaMTMeX3Wyr7Shi2 3U0Lf60BVYrWwo++9+QTKa1uy/lybK/U62qYhPklSlO1fuZLz0oDmm9PsP05qLSWsxSc hkwEY+R8vWqQb9uTTIx4pv3ne9D6w/9PJlq67hJ7MRdIxNszM1NQI7n0F6pLsTyo+FZ1 lUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JbNCPfQ/roqFMvfDVCK/GyRFnn05PPWL4s16p+iljKg=; b=MxYkdw8s4zLVNXPAZHt1dQquS6N3/G+ihMgA6InWkQgQOtxxFf+CKPUTWhCXhz9LQl jTz2dVH27iKid4r5cD4srROc7tJwVNWHUqgpuFdnFGUFxZwiTnegUrtFY5z9DyBoQpfj e1O/q6GS4hf+FggZ7KpapJRIBc7RZ3Rd4VqdTEykSmsYV+xMD9v94Rn35U7iZZzXtsHd f+rHt2fmOIyiY/kDE3k81RsKnrDpvh5n2+0vTcq+FnQt0QOFzElAwOEYqb28TQtSk8Vp 5pZXUdDRSGhDKDnbtRJJtybF9hcnpALjJ1u67NBP10UMueEL+y+Lyxjfw2GoUDPi6J1g V4+Q== X-Gm-Message-State: AOAM532grUkpWhN3ZDxjr9/HYalOJQC6nrwL2D2+U0ii+lSsaMv2rlVp UZiR5loxU9oxcsm7uiobH6GR/ich04rurLxJXzU56w== X-Google-Smtp-Source: ABdhPJxLE3Qt3UCz8nFg87Y8EMVRDCfGsHytH1+xHqDhtFTMg/s/NlcmgHBCSeyLFs9ITxbykj8dOdiW0wmu2C2pqEU= X-Received: by 2002:a9d:644a:: with SMTP id m10mr19849951otl.233.1615204260958; Mon, 08 Mar 2021 03:51:00 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Marco Elver Date: Mon, 8 Mar 2021 12:50:49 +0100 Message-ID: Subject: Re: [PATCH 3/5] kasan, mm: integrate page_alloc init with HW_TAGS To: Andrey Konovalov Cc: Alexander Potapenko , Andrew Morton , Catalin Marinas , Will Deacon , Vincenzo Frascino , Dmitry Vyukov , Andrey Ryabinin , Peter Collingbourne , Evgenii Stepanov , Branislav Rankov , Kevin Brodsky , kasan-dev , Linux ARM , Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" X-Stat-Signature: dwta6etayyer1qikeqfeo8d3rujwuffd X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 361E9E0011F9 Received-SPF: none (google.com>: No applicable sender policy available) receiver=imf13; identity=mailfrom; envelope-from=""; helo=mail-ot1-f48.google.com; client-ip=209.85.210.48 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1615204260-975903 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, 8 Mar 2021 at 12:35, Marco Elver wrote: [...] > Could we instead add a static inline helper to , e.g. > kasan_supports_init() or so? Hmm, KASAN certainly "supports" memory initialization always. So maybe "kasan_has_accelerated_init()" is more accurate? I leave it to you to decide what the best option is. Thanks, -- Marco From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D43AEC433DB for ; Mon, 8 Mar 2021 11:52:23 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3309C65132 for ; Mon, 8 Mar 2021 11:52:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3309C65132 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BEoY77eiVR9IAEni1G58OepYkTC86cA386Zi7AiHqFQ=; b=DoXpraWZeiXKYnnd9H86FqzuG R8PbEWjhHPjLZmh52lkwSIkZwbMvQz3XCnheZO5bSvXp3D7nlEtEfMcie98YDHf2Xj+qedvxCmHkg RRMxEvxI8g1Xt93SGSelTB0QaN9E/vyshsEcdkEt//r0NIC2dl4qDeSAIQc6xoIlqJ5njqyIMxz/s mOk/n5RpKu9eOOm4lyExd6x0QEsmLFWRA0QuSzqPxTTovkff+liQWGyKP7SGaGBCLJGpUeIewnasS QD2LGbA3cLIm2b9Bnwj8UV3sVqx3jrWoIj8UPLLonfaQrp4JTeKi3DIZw71qwE4PE039pm+g+k6vo AX+G/Fweg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lJEPk-00GsHC-KP; Mon, 08 Mar 2021 11:51:08 +0000 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lJEPf-00GsE0-7G for linux-arm-kernel@lists.infradead.org; Mon, 08 Mar 2021 11:51:05 +0000 Received: by mail-ot1-x331.google.com with SMTP id t16so8872474ott.3 for ; Mon, 08 Mar 2021 03:51:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JbNCPfQ/roqFMvfDVCK/GyRFnn05PPWL4s16p+iljKg=; b=PS5NN6DUCqMOBqLWOEzdWpTZ1Sa2R2WYZiakOxUSdiElm9ZJ51RzEwsj0Ri+e5mWB5 Z9QPG1HJ1heIOFlZ8fKe9ous/pi9AthiInarCnWhq3jNCckqZxQhdVl3RfMwTSZlY5lG g8EujUVi0mv784njAV974o/XliCTbz2kP0WzBue966M2Ph26LxCmuaMTMeX3Wyr7Shi2 3U0Lf60BVYrWwo++9+QTKa1uy/lybK/U62qYhPklSlO1fuZLz0oDmm9PsP05qLSWsxSc hkwEY+R8vWqQb9uTTIx4pv3ne9D6w/9PJlq67hJ7MRdIxNszM1NQI7n0F6pLsTyo+FZ1 lUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JbNCPfQ/roqFMvfDVCK/GyRFnn05PPWL4s16p+iljKg=; b=Raj1tbDHEJWCJXKtBCNoGRqNkEdkzveg5vqJFy5dbDFeuAGMfP2dpM9q1S4QwyIPlx IIPQmi7u9P8rNGs9oYZ35IPwIqYY1Rz/rorg4JnNyINyNwnEiCcHfyPkEq0imY/Xp4Dg llnTJTG24u0U2w2AZTAUFH8X4rPwPn470tA92m9Np9RJt97ENe7FhfNR2s6yr/0gkX8y Xe8qXoZw6/ZOe9odtBkJypbqnW2DpeJl+3AQhXqfy5S44NGAGHOwicyroZDBiVOu+XEO tHXEQK2JJxhRn2Im5B1xWNM/uXmBZlGvqg7u8TLpQuE3VVIK8hYJtchOU5HoYv0q0Qlr zZ2w== X-Gm-Message-State: AOAM5325/Zj1SPkuY4IkrfgX0eqCS+Ib1LoZhhMZUmLfinywJPC9RI5g zkPpkjOftFNh/msOBwofXVJmBsLXIw3ddKrxd+3qtA== X-Google-Smtp-Source: ABdhPJxLE3Qt3UCz8nFg87Y8EMVRDCfGsHytH1+xHqDhtFTMg/s/NlcmgHBCSeyLFs9ITxbykj8dOdiW0wmu2C2pqEU= X-Received: by 2002:a9d:644a:: with SMTP id m10mr19849951otl.233.1615204260958; Mon, 08 Mar 2021 03:51:00 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Marco Elver Date: Mon, 8 Mar 2021 12:50:49 +0100 Message-ID: Subject: Re: [PATCH 3/5] kasan, mm: integrate page_alloc init with HW_TAGS To: Andrey Konovalov Cc: Alexander Potapenko , Andrew Morton , Catalin Marinas , Will Deacon , Vincenzo Frascino , Dmitry Vyukov , Andrey Ryabinin , Peter Collingbourne , Evgenii Stepanov , Branislav Rankov , Kevin Brodsky , kasan-dev , Linux ARM , Linux Memory Management List , LKML X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210308_115103_386659_650BE8A0 X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 8 Mar 2021 at 12:35, Marco Elver wrote: [...] > Could we instead add a static inline helper to , e.g. > kasan_supports_init() or so? Hmm, KASAN certainly "supports" memory initialization always. So maybe "kasan_has_accelerated_init()" is more accurate? I leave it to you to decide what the best option is. Thanks, -- Marco _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel