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=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 3803FC43464 for ; Fri, 18 Sep 2020 10:53:55 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 D302021973 for ; Fri, 18 Sep 2020 10:53:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MCN6zNwK"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="Sw1eIJfE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D302021973 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6Fw7EOd/schFpk5PGtAdGzgrKm1am2S3QFvM9aa1RU4=; b=MCN6zNwK0rR2/dfOxrPD/YF8d FDhQdlAMZekwuO22QUOt73MdesnJg66M2J+bfC7nocY9/2bekA1M+/omkPmYsJXgxrX8rsHW0h5N+ MY7is5AarbkYfuKW8TpRFrQJjDp02xMyj4Z1FS/Sw1to02M15Mkh6MpEAoBVh+/ktwSP5sm64IA2o CbN7OPNu332rVWnFhSRdHyOh9u6v3DhrviXdsZVUcijpIa64w99ES2jzaPWbOW5g7ajJzepkhCoc2 LBpBR8C45pTNEWumPCVOASgp53lnBoOVhn9yxjp0jfoAlSdyZf/P/hOWp44BOy13OtmsaLg3bnal+ w+xPRJOZA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJE0F-00074L-Jp; Fri, 18 Sep 2020 10:52:31 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJDzx-0006xU-L2 for linux-arm-kernel@lists.infradead.org; Fri, 18 Sep 2020 10:52:27 +0000 Received: by mail-wr1-x444.google.com with SMTP id g4so5146882wrs.5 for ; Fri, 18 Sep 2020 03:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=QRQC3uLJVX16XzkVHd3z/hv57pExgyhDAmcqkPNt84U=; b=Sw1eIJfE1409NQTIJRhIX1I0QQR7u/g+MPtdgNo1Zo+Tq1UeGFnyz4F8ze7oe+nC1I 5DAU5soFywsnnGBmflf0fXA5wZNF0tgCoxOGpoD1NKOYxCKxwVz2hjsMIH9vFlBxjYPO Rt9IWFekFWBaaYXoCwY92ZhEMZ6mkz2uqUVB6C9J9wvwjXqiHyO4t7xShiMY3bh/RARa moNtLS3MMZ/f20DEy1mgufmJJ2V2UIgeFP7ubM/v6zWF+zI5v2eXl/aTxbBoOvZb5GGZ Vfihpf0Z+pOKKzu5a8XUpDPjqjmVJV5pqtUDaR7YQZv7QAwT8GuIoTfbYWbrjxn3J1Yy NjuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=QRQC3uLJVX16XzkVHd3z/hv57pExgyhDAmcqkPNt84U=; b=qLP32844Eq1+lmNQObxhnGZVTIvZVZzfvF34xgykXaEBJroFpgOGol9SkZtYFwsoG1 ONp9pkUJ6UHyHhmHRBJcVZpwXByD8k5bLCBl3maK2ovwyBvXVmvKLnS6ayZCxIhjx2hM OIi+OJUEQfWaZBrsG6fvoy9DHMruGMCstJKBsz0mapzoHINuuoM079QEigi7qWiVSs2P qVk0r5ANujWTU1v07C2/BQI2lPwbqWO7NYvw9U7mf+o+Y+bhRGLMsaC05cAYbDcst7Tm Yg96HTGJz2rubXKis4HNmgAT19D7o49o/2LprGPWqiwtefXnhen1YaggGNTpfCfsFjOH IkCA== X-Gm-Message-State: AOAM532np99ECvfBUw8TeyI296b2/ytqh8BO6o7SOHsAAwjxY8kAIYJ2 Um77JaM6tXctOQDQEkJIixo46w== X-Google-Smtp-Source: ABdhPJydrL632UFElWnacFMRQXcf43tkGyJ9uuzMmD/4tZJzHuCjMYxrGUNAacrDLdAoubM6aNocxw== X-Received: by 2002:adf:b306:: with SMTP id j6mr35571156wrd.279.1600426332508; Fri, 18 Sep 2020 03:52:12 -0700 (PDT) Received: from elver.google.com ([100.105.32.75]) by smtp.gmail.com with ESMTPSA id a10sm4228229wmj.38.2020.09.18.03.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2020 03:52:11 -0700 (PDT) Date: Fri, 18 Sep 2020 12:52:06 +0200 From: Marco Elver To: Andrey Konovalov Subject: Re: [PATCH v2 31/37] kasan, x86, s390: update undef CONFIG_KASAN Message-ID: <20200918105206.GB2384246@elver.google.com> References: <0a35b29d161bf2559d6e16fbd903e49351c7f6b8.1600204505.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <0a35b29d161bf2559d6e16fbd903e49351c7f6b8.1600204505.git.andreyknvl@google.com> User-Agent: Mutt/1.14.4 (2020-06-18) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200918_065213_827471_060DE838 X-CRM114-Status: GOOD ( 17.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Branislav Rankov , Elena Petrova , Catalin Marinas , Kevin Brodsky , Will Deacon , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, Alexander Potapenko , Evgenii Stepanov , Andrey Ryabinin , Andrew Morton , Vincenzo Frascino , Dmitry Vyukov 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 Tue, Sep 15, 2020 at 11:16PM +0200, Andrey Konovalov wrote: [...] > arch/s390/boot/string.c | 1 + > arch/x86/boot/compressed/misc.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/arch/s390/boot/string.c b/arch/s390/boot/string.c > index b11e8108773a..faccb33b462c 100644 > --- a/arch/s390/boot/string.c > +++ b/arch/s390/boot/string.c > @@ -3,6 +3,7 @@ > #include > #include > #undef CONFIG_KASAN > +#undef CONFIG_KASAN_GENERIC Is CONFIG_KASAN still used to guard instrumented versions of functions? It looks like #undef CONFIG_KASAN is no longer needed -- at least no longer mentions it. > #include "../lib/string.c" > > int strncmp(const char *cs, const char *ct, size_t count) > diff --git a/arch/x86/boot/compressed/misc.h b/arch/x86/boot/compressed/misc.h > index 726e264410ff..2ac973983a8e 100644 > --- a/arch/x86/boot/compressed/misc.h > +++ b/arch/x86/boot/compressed/misc.h > @@ -12,6 +12,7 @@ > #undef CONFIG_PARAVIRT_XXL > #undef CONFIG_PARAVIRT_SPINLOCKS > #undef CONFIG_KASAN > +#undef CONFIG_KASAN_GENERIC Similar here; although it seems a little harder to check if CONFIG_KASAN is still needed. (Maybe could check the preprocessed output diffs?) > > /* cpu_feature_enabled() cannot be used this early */ > #define USE_EARLY_PGTABLE_L5 > -- > 2.28.0.618.gf4bc123cb7-goog > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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=-15.9 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1, USER_IN_DEF_DKIM_WL autolearn=unavailable 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 00797C43463 for ; Fri, 18 Sep 2020 10:52:16 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6EABA21973 for ; Fri, 18 Sep 2020 10:52:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Sw1eIJfE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6EABA21973 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 E39D9900003; Fri, 18 Sep 2020 06:52:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DE8B28E0001; Fri, 18 Sep 2020 06:52:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CB043900003; Fri, 18 Sep 2020 06:52:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0113.hostedemail.com [216.40.44.113]) by kanga.kvack.org (Postfix) with ESMTP id B55EF8E0001 for ; Fri, 18 Sep 2020 06:52:14 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 76339180AD806 for ; Fri, 18 Sep 2020 10:52:14 +0000 (UTC) X-FDA: 77275867788.19.toy27_4b0eeee2712a Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin19.hostedemail.com (Postfix) with ESMTP id 5367D1AD1B0 for ; Fri, 18 Sep 2020 10:52:14 +0000 (UTC) X-HE-Tag: toy27_4b0eeee2712a X-Filterd-Recvd-Size: 4996 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by imf45.hostedemail.com (Postfix) with ESMTP for ; Fri, 18 Sep 2020 10:52:13 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id j2so5148217wrx.7 for ; Fri, 18 Sep 2020 03:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=QRQC3uLJVX16XzkVHd3z/hv57pExgyhDAmcqkPNt84U=; b=Sw1eIJfE1409NQTIJRhIX1I0QQR7u/g+MPtdgNo1Zo+Tq1UeGFnyz4F8ze7oe+nC1I 5DAU5soFywsnnGBmflf0fXA5wZNF0tgCoxOGpoD1NKOYxCKxwVz2hjsMIH9vFlBxjYPO Rt9IWFekFWBaaYXoCwY92ZhEMZ6mkz2uqUVB6C9J9wvwjXqiHyO4t7xShiMY3bh/RARa moNtLS3MMZ/f20DEy1mgufmJJ2V2UIgeFP7ubM/v6zWF+zI5v2eXl/aTxbBoOvZb5GGZ Vfihpf0Z+pOKKzu5a8XUpDPjqjmVJV5pqtUDaR7YQZv7QAwT8GuIoTfbYWbrjxn3J1Yy NjuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=QRQC3uLJVX16XzkVHd3z/hv57pExgyhDAmcqkPNt84U=; b=lk3A5xE5ZiQIEMfmGGg1Vln4TrayIaAilGplHQGib9mfxvFb3n/jXqGj0oBYHG3KGK aDz8FXVFytuj2IIB/EUqldR6tXS4XyESyWhE34VXcailCxZy82Bd1IGPwNWi2PIXWQzX nkQYdoSTIxJ+6XsG7gJjeGmT5DmaOU5NZip0wZikMLzFrUEJCetTdpMrxDcWjsMjr+gr FxBKOfbOAzhFhHQVIPi853BRYFYugHM/G9rkNz72UVDXXQYuPNaRIJQiil6ohJDKQYAR Xbh+tVfbsf+pQ14t6rAxlDLxmlmXo5awHGCzR1YSHLBdujZESqMCHoiyiWpYArJ35sKE I6Yg== X-Gm-Message-State: AOAM530yfy7h+xDUIjzkuPN1s5dKgZlZml6bjXTntWRHJrTGYc51N/ke KH43F1QgE/brgHxtAvF9tXpPOw== X-Google-Smtp-Source: ABdhPJydrL632UFElWnacFMRQXcf43tkGyJ9uuzMmD/4tZJzHuCjMYxrGUNAacrDLdAoubM6aNocxw== X-Received: by 2002:adf:b306:: with SMTP id j6mr35571156wrd.279.1600426332508; Fri, 18 Sep 2020 03:52:12 -0700 (PDT) Received: from elver.google.com ([100.105.32.75]) by smtp.gmail.com with ESMTPSA id a10sm4228229wmj.38.2020.09.18.03.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2020 03:52:11 -0700 (PDT) Date: Fri, 18 Sep 2020 12:52:06 +0200 From: Marco Elver To: Andrey Konovalov Cc: Dmitry Vyukov , Vincenzo Frascino , Catalin Marinas , kasan-dev@googlegroups.com, Andrey Ryabinin , Alexander Potapenko , Evgenii Stepanov , Elena Petrova , Branislav Rankov , Kevin Brodsky , Will Deacon , Andrew Morton , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 31/37] kasan, x86, s390: update undef CONFIG_KASAN Message-ID: <20200918105206.GB2384246@elver.google.com> References: <0a35b29d161bf2559d6e16fbd903e49351c7f6b8.1600204505.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0a35b29d161bf2559d6e16fbd903e49351c7f6b8.1600204505.git.andreyknvl@google.com> User-Agent: Mutt/1.14.4 (2020-06-18) 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 Tue, Sep 15, 2020 at 11:16PM +0200, Andrey Konovalov wrote: [...] > arch/s390/boot/string.c | 1 + > arch/x86/boot/compressed/misc.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/arch/s390/boot/string.c b/arch/s390/boot/string.c > index b11e8108773a..faccb33b462c 100644 > --- a/arch/s390/boot/string.c > +++ b/arch/s390/boot/string.c > @@ -3,6 +3,7 @@ > #include > #include > #undef CONFIG_KASAN > +#undef CONFIG_KASAN_GENERIC Is CONFIG_KASAN still used to guard instrumented versions of functions? It looks like #undef CONFIG_KASAN is no longer needed -- at least no longer mentions it. > #include "../lib/string.c" > > int strncmp(const char *cs, const char *ct, size_t count) > diff --git a/arch/x86/boot/compressed/misc.h b/arch/x86/boot/compressed/misc.h > index 726e264410ff..2ac973983a8e 100644 > --- a/arch/x86/boot/compressed/misc.h > +++ b/arch/x86/boot/compressed/misc.h > @@ -12,6 +12,7 @@ > #undef CONFIG_PARAVIRT_XXL > #undef CONFIG_PARAVIRT_SPINLOCKS > #undef CONFIG_KASAN > +#undef CONFIG_KASAN_GENERIC Similar here; although it seems a little harder to check if CONFIG_KASAN is still needed. (Maybe could check the preprocessed output diffs?) > > /* cpu_feature_enabled() cannot be used this early */ > #define USE_EARLY_PGTABLE_L5 > -- > 2.28.0.618.gf4bc123cb7-goog >