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,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, 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 8197CC4741F for ; Thu, 1 Oct 2020 18:00: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 27B1B208B6 for ; Thu, 1 Oct 2020 18:00:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="CLQKJTAw"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="L/shRT1p" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 27B1B208B6 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=N3jRDHJmsjJOFtRKIERtaEE2Xuv6QVZBRojpJ0/KpRU=; b=CLQKJTAwJvoPHYXWamiKiJIoL 4ElICcJk/JO2iqtSkiRg4rpAt7BuGRQMpECQ+1FagA46ByXb5XixuoPPp3Els1V3bfLS0SknOd1EY Sz112xY8ik0WKph34zigGgiw/9dRJ6I+lwYTz0ui5CncjBsPDCldGt5zHGw47CBEod4c0SnFrUGgz H3gA6G4LzwiC1WVuLXkhLwe5qoUodP1t3+Yjf8roQtx1RW0sw8re6oyRrkbpt6zdlNDYIBms4dZvl Druoqwz+gczcvLqEEY3h9GD8gL1jFuh40jAOAccflcpegiuxfy+bwkdUUus3Ae2o9gJC050aE2T8m ncpfb1wcQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kO2ra-0008Sm-8q; Thu, 01 Oct 2020 17:59:30 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kO2rX-0008RW-6U for linux-arm-kernel@lists.infradead.org; Thu, 01 Oct 2020 17:59:28 +0000 Received: by mail-wm1-x343.google.com with SMTP id y15so4111105wmi.0 for ; Thu, 01 Oct 2020 10:59:26 -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=TLkPGKpJtl4arwZwTjWF8S+it5AeziayXNp4OPYQ4v0=; b=L/shRT1pI/QwzoXVUw9bsnM765r2VeYplu8Wz+LYLwBElfLPKZJVaFADv+0FmuGoBe KC2gFqgy0VKtCKReeyzvMp1PYPy4RL3vRvAggOg+cOb81/zFkgM5VGHl/HgaJAn+t4Kh C8GeBwASqw9u4KtGb/4L6OReaEay0i2VgmNW90WpTWQlttYqXQ3OtlXAWq3y3Ftq5eM2 L+/b48+fjZqFxvEUjEqSA86pX3bf8DRTvnOToc7eq9RynDTEYIxfrHldw7vzInvPiHqz WJX+WwvWGNe7qGrKRdTgHDPEIRZY0aarmOSR2tedXtqrGev3BIcIPcDAKQGon+BRR/+k sIUw== 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=TLkPGKpJtl4arwZwTjWF8S+it5AeziayXNp4OPYQ4v0=; b=PBGRHpjbR8SJH0usqY/FMy0GXj8YvQvK17q46lEkjS9qw9sNsUZED7tW1NjbtEd0WA WpWl10f/A/h05su3IRW3pIQbasQ+z8k+wUQNDRml2VTjec2xgVx4aWgHeaQhkNXEvRJD LanhVHp2ABok3PdKSf09VdyN9wLLmfflPVHDmWhWYZYyXy/UiXDDr+a8qocLQq5vFlK7 gv/el2HKlBUcifXixleAhod/Fy61SwBW4N4mQHfSB8s6sm/ua2OoVT2S7NpMJadxwUW2 B5NsmR5bTilybumgveA5dCdl1DpJPoS/dgjBUP8zgq6oYR4FBsyju0iDvf4ruEKqVI7F GjWw== X-Gm-Message-State: AOAM5321b57gadUSa9vCmzwpnlMlJ+kDj6D3xA8UJrCOgOXkEGQWsw0D mVOmTlxobQRpKzBfzI/RIHJDuw== X-Google-Smtp-Source: ABdhPJz5PgD6vTssc8V1Lrw9XSn1QOwDzDEYGKvfMkJVoJ4ADqVAmBh2/G9ztT6GoF615R4L6e5WpQ== X-Received: by 2002:a7b:cf30:: with SMTP id m16mr1235811wmg.0.1601575165850; Thu, 01 Oct 2020 10:59:25 -0700 (PDT) Received: from elver.google.com ([100.105.32.75]) by smtp.gmail.com with ESMTPSA id d23sm965442wmb.6.2020.10.01.10.59.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2020 10:59:24 -0700 (PDT) Date: Thu, 1 Oct 2020 19:59:19 +0200 From: elver@google.com To: Andrey Konovalov Subject: Re: [PATCH v3 33/39] kasan, x86, s390: update undef CONFIG_KASAN Message-ID: <20201001175919.GT4162920@elver.google.com> References: <78ebf3bed0458172fec9e1e32f2d29d7c8c37341.1600987622.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <78ebf3bed0458172fec9e1e32f2d29d7c8c37341.1600987622.git.andreyknvl@google.com> User-Agent: Mutt/1.14.5 (2020-06-23) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201001_135927_255574_0892C701 X-CRM114-Status: GOOD ( 21.02 ) 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 Fri, Sep 25, 2020 at 12:50AM +0200, Andrey Konovalov wrote: > With the intoduction of hardware tag-based KASAN some kernel checks of > this kind: > > ifdef CONFIG_KASAN > > will be updated to: > > if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS) > > x86 and s390 use a trick to #undef CONFIG_KASAN for some of the code > that isn't linked with KASAN runtime and shouldn't have any KASAN > annotations. > > Also #undef CONFIG_KASAN_GENERIC with CONFIG_KASAN. > > Signed-off-by: Andrey Konovalov > Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver > --- > Change-Id: I2a622db0cb86a8feb60c30d8cb09190075be2a90 > --- > 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 > #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 > > /* cpu_feature_enabled() cannot be used this early */ > #define USE_EARLY_PGTABLE_L5 > -- > 2.28.0.681.g6f77f65b4e-goog > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel