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=-18.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,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1,USER_IN_DEF_DKIM_WL 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 54716C4727E for ; Thu, 1 Oct 2020 17:39:56 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F0DDA2054F for ; Thu, 1 Oct 2020 17:39:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ptyqzr5K" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F0DDA2054F 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 6368C900016; Thu, 1 Oct 2020 13:39:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5E5E3900003; Thu, 1 Oct 2020 13:39:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4D537900016; Thu, 1 Oct 2020 13:39:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0163.hostedemail.com [216.40.44.163]) by kanga.kvack.org (Postfix) with ESMTP id 20185900003 for ; Thu, 1 Oct 2020 13:39:55 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id B9AE6180AD801 for ; Thu, 1 Oct 2020 17:39:54 +0000 (UTC) X-FDA: 77324069508.20.light02_600fe0a2719d Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id 73B49180C07AB for ; Thu, 1 Oct 2020 17:39:54 +0000 (UTC) X-HE-Tag: light02_600fe0a2719d X-Filterd-Recvd-Size: 5563 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by imf46.hostedemail.com (Postfix) with ESMTP for ; Thu, 1 Oct 2020 17:39:53 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id k15so6766537wrn.10 for ; Thu, 01 Oct 2020 10:39:53 -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=7216dcRRE3Wn/EM/apMUAUVbD6PsUdlPnAr0Igr7XOw=; b=ptyqzr5KlaqwXGCWxthcuEXOqWrP87iiVAPL53D3y6ROp4TSs/wZ78d9mRg7iQLTJx 6UeLl1ARtrStVJglbLLkIMWz/LNq+uHsiqrgXo0L80r6jfucTEmW5ib6fGkNVF4DTG6w hXv+8awczmTdAvLTgmWg7wIMkdOI3vPiyF8C1kzIddtqx/n0yp/gHjrTDjweG05vpfol ddjCbjuniqlDqPv3Sm92UqyGncDUAIT2+Qe6rfG9DByFQCnodOC22MMqTfJ60CXQgh+r JQ98cfavwZAELBnvwIbaQN2Xj/EOzXLAz7hazRs4KHapIezwYD7g/MJTof55xYdJTGz0 P6xg== 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=7216dcRRE3Wn/EM/apMUAUVbD6PsUdlPnAr0Igr7XOw=; b=hb1smilQIiB/pY2HSXa+HB/jcfwyl8WDFF5xRyoJwK47kYrf6i5f4W01x0L5TZIi7Z W3FgDnmI+sHBdrsl8MDRvaxPPmCMqlFGYpc49G6j7i33sFQKd44YoAgQFQA7twDt5dfA w3gM0fQRFYikWWWmbwv5sP/7HJyIuUebgzar1a0X+K5Tt4U6NUsrJJCS+Pnm29j9rJlK uEYmKk3pFOzNBZZ5mfBx+yDlXmUdVyXo6MBlEaHgZdrI9YipkvSQUrmW0oEqgWmjBWNV 1AqmYiK0H/zlgejvhR7cHfQsxvJCInUKj8CcIKntpamgIBJsl7fkz1FiLvjHVm2Ftjg0 W1lg== X-Gm-Message-State: AOAM5313N9JOkMuVp70HfuPIp0f4YgNqMMuVKzwF4t6YdToOP8sX9MYK Y4iOjzsoo8wcIgZms2cpXWARFg== X-Google-Smtp-Source: ABdhPJzJbvJMOEyc/fQ30bJrPNU6qkZ+WL5VMh3wle0oInfm6VZiuVKwbb5VAADZcWx+eKbi219y+w== X-Received: by 2002:a5d:4151:: with SMTP id c17mr11009569wrq.302.1601573992713; Thu, 01 Oct 2020 10:39:52 -0700 (PDT) Received: from elver.google.com ([100.105.32.75]) by smtp.gmail.com with ESMTPSA id y14sm854478wma.48.2020.10.01.10.39.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2020 10:39:51 -0700 (PDT) Date: Thu, 1 Oct 2020 19:39:45 +0200 From: elver@google.com 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 v3 11/39] kasan: don't duplicate config dependencies Message-ID: <20201001173945.GI4162920@elver.google.com> References: <728981bdedbca9dc1e4cca853699b6a6e8f244e0.1600987622.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <728981bdedbca9dc1e4cca853699b6a6e8f244e0.1600987622.git.andreyknvl@google.com> User-Agent: Mutt/1.14.5 (2020-06-23) 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 Fri, Sep 25, 2020 at 12:50AM +0200, Andrey Konovalov wrote: > Both KASAN_GENERIC and KASAN_SW_TAGS have common dependencies, move > those to KASAN. > > Signed-off-by: Andrey Konovalov > Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver But see comment below: > --- > Change-Id: I77e475802e8f1750b9154fe4a6e6da4456054fcd > --- > lib/Kconfig.kasan | 11 +++-------- > 1 file changed, 3 insertions(+), 8 deletions(-) > > diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan > index e1d55331b618..b4cf6c519d71 100644 > --- a/lib/Kconfig.kasan > +++ b/lib/Kconfig.kasan > @@ -24,6 +24,9 @@ menuconfig KASAN > (HAVE_ARCH_KASAN_SW_TAGS && CC_HAS_KASAN_SW_TAGS) > depends on (SLUB && SYSFS) || (SLAB && !DEBUG_SLAB) > depends on CC_HAS_WORKING_NOSANITIZE_ADDRESS > + select SLUB_DEBUG if SLUB > + select CONSTRUCTORS > + select STACKDEPOT In the later patch your move 'select SLUB_DEBUG' back to where they were here it seems. The end result is the same, so I leave it to you if you want to change it. > help > Enables KASAN (KernelAddressSANitizer) - runtime memory debugger, > designed to find out-of-bounds accesses and use-after-free bugs. > @@ -46,10 +49,6 @@ choice > config KASAN_GENERIC > bool "Generic mode" > depends on HAVE_ARCH_KASAN && CC_HAS_KASAN_GENERIC > - depends on (SLUB && SYSFS) || (SLAB && !DEBUG_SLAB) > - select SLUB_DEBUG if SLUB > - select CONSTRUCTORS > - select STACKDEPOT > help > Enables generic KASAN mode. > > @@ -70,10 +69,6 @@ config KASAN_GENERIC > config KASAN_SW_TAGS > bool "Software tag-based mode" > depends on HAVE_ARCH_KASAN_SW_TAGS && CC_HAS_KASAN_SW_TAGS > - depends on (SLUB && SYSFS) || (SLAB && !DEBUG_SLAB) > - select SLUB_DEBUG if SLUB > - select CONSTRUCTORS > - select STACKDEPOT > help > Enables software tag-based KASAN mode. > > -- > 2.28.0.681.g6f77f65b4e-goog >