Received: by 10.213.65.68 with SMTP id h4csp3505023imn; Mon, 9 Apr 2018 23:20:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+SAYS9CncTHqYUVru8jMJVUR2vGJiOY99+C1FcEGKBDCH99kXeYnt/HFUYl1UjXuoK/ViV X-Received: by 10.99.96.84 with SMTP id u81mr27406799pgb.231.1523341241476; Mon, 09 Apr 2018 23:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523341241; cv=none; d=google.com; s=arc-20160816; b=mzT6ISJLe5HZ8ZY8D/zZdJDwhelwhR1eojSX/YhK70gvKS9vAGGUJOwRe0j86Ah478 Qr9BPNezYH4DVlgmI8tp0h8h1+b2u8F2dfpo+gMlHWyQF9jWb7EAf+qU27n3tNL5gF1Z k9kzfpAWzfZhGz0weAsSOX1gUZ/00VhsBOpsBmpsARSQGoZSgMKL8njSLaUCD3du9UxJ 76M5larDjrMD7z0jJHSDiSmmMu6FRFn4WFcn7F/hLD1zP4HXeKOVK0FAqWTUBJVIGwE5 0m252++uIYjjPgOuAG6a9I3i0RP+EAurDVOdVdXPWGIyfG8MfQIj/20vxtCej6WfIkqQ v+cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=RvR9Bo53++xLkOuKN6YSUuOa3L3xWVEODCcJegW0uRw=; b=FydOatAVC3+W4ZQggk1ECN7Wyxxp7QNeCE3J0lubSvVs383BgJZ7WNGD3RZwQx0Pxj QPBZ2kW6B2luJR6y93DQpfYkXY1ZueqLyEtTw5zTgB3ItSG9I3rl7lED6Sma7Vn8zNLU 1q4yEZtlTf7QqJE1jiw6HORTiZR5ZqDwj2Uw4L3saTF8wv4BADSQVJa9ocvWpGK64Uti o5vruPnCxm6vbQcAPCYPX5X1k6njjxKkuO7Xa7KGCcuYGxcd35ty5zJ/IcQe8VTHcMPr KhkK8px2989pF9k0XHak5QeJT+KiptECsQgq4eHa/b5BLXhACPxGtpspfT36tV6eXWhA dxVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=sOFj0+iy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8si1330536pgu.98.2018.04.09.23.20.03; Mon, 09 Apr 2018 23:20:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=sOFj0+iy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752002AbeDJGQb (ORCPT + 99 others); Tue, 10 Apr 2018 02:16:31 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:64053 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751771AbeDJGQa (ORCPT ); Tue, 10 Apr 2018 02:16:30 -0400 Received: from mail-vk0-f44.google.com (mail-vk0-f44.google.com [209.85.213.44]) (authenticated) by conssluserg-01.nifty.com with ESMTP id w3A6GQo7003540; Tue, 10 Apr 2018 15:16:26 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com w3A6GQo7003540 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1523340987; bh=RvR9Bo53++xLkOuKN6YSUuOa3L3xWVEODCcJegW0uRw=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=sOFj0+iyb7lnB3RyzElAApjoIeouKwbW7HMwUamonvBlIRhbsTxwnfhRirlkA9BZi VVVPEhPL8mHV2ih1iRJQ4EPAj867nmkFHnvr4oW9zym4eB9qmLE6ivQKmSR2kdicqW R84Tw5+4IMzPNsMmZxgCDKf1pk4UFh4Jh5QlEfiMF7lRqh3Rd/sM0VeUk7jotqRL7m Sc8x5dkaatn/vUge//R6d59K48SBPWvsbhvzxIoLgAi58vuMLGXGUm5SwCX7Vru36W FZFr1ciaMoJSKmBrsQ0R/WeKyqzL3j10AEEhCTRxqpsydS+w/0mY8AoTLzngxG2CLt EUUcWUuXPtGFA== X-Nifty-SrcIP: [209.85.213.44] Received: by mail-vk0-f44.google.com with SMTP id h134so6311361vke.2; Mon, 09 Apr 2018 23:16:26 -0700 (PDT) X-Gm-Message-State: ALQs6tClOGMk1gpOHnxVrcZJ+7/AVy+z/KbZvTjtuvJ5jq8cR3Go+NmV D+JxzeDhrgi0x4KxUZ5w5DMp80kC//hLuAKpQEY= X-Received: by 10.31.146.16 with SMTP id u16mr3102793vkd.160.1523340984114; Mon, 09 Apr 2018 23:16:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.29.150 with HTTP; Mon, 9 Apr 2018 23:15:43 -0700 (PDT) In-Reply-To: References: <1522128575-5326-1-git-send-email-yamada.masahiro@socionext.com> <1522128575-5326-21-git-send-email-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Tue, 10 Apr 2018 15:15:43 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 20/21] gcc-plugins: enable GCC_PLUGINS for COMPILE_TEST To: Kees Cook Cc: linux-kbuild , Sam Ravnborg , Linus Torvalds , Arnd Bergmann , Ulf Magnusson , Thomas Gleixner , Greg Kroah-Hartman , Randy Dunlap , "Luis R . Rodriguez" , Nicolas Pitre , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-03-28 20:47 GMT+09:00 Kees Cook : > On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada > wrote: >> The plugin availability is checked in Kconfig, so all{yes,mod}config >> will not be bothered. Remove 'depends on !COMPILE_TEST'. >> >> Signed-off-by: Masahiro Yamada >> --- >> >> Changes in v2: >> - Remove more 'depends on' >> >> arch/Kconfig | 4 ---- >> 1 file changed, 4 deletions(-) >> >> diff --git a/arch/Kconfig b/arch/Kconfig >> index 88cc925..b07094c 100644 >> --- a/arch/Kconfig >> +++ b/arch/Kconfig >> @@ -414,7 +414,6 @@ menuconfig GCC_PLUGINS >> bool "GCC plugins" >> depends on HAVE_GCC_PLUGINS >> depends on $(success $srctree/scripts/gcc-plugin.sh $HOSTCXX $CC) >> - depends on !COMPILE_TEST >> help >> GCC plugins are loadable modules that provide extra features to the >> compiler. They are useful for runtime instrumentation and static analysis. > > This one is nice, yes! We get coverage for anyone with plugin support. > >> @@ -424,7 +423,6 @@ menuconfig GCC_PLUGINS >> config GCC_PLUGIN_CYC_COMPLEXITY >> bool "Compute the cyclomatic complexity of a function" if EXPERT >> depends on GCC_PLUGINS >> - depends on !COMPILE_TEST >> help >> The complexity M of a function's control flow graph is defined as: >> M = E - N + 2P >> @@ -487,7 +485,6 @@ config GCC_PLUGIN_STRUCTLEAK_BYREF_ALL >> config GCC_PLUGIN_STRUCTLEAK_VERBOSE >> bool "Report forcefully initialized variables" >> depends on GCC_PLUGIN_STRUCTLEAK >> - depends on !COMPILE_TEST >> help >> This option will cause a warning to be printed each time the >> structleak plugin finds a variable it thinks needs to be >> @@ -527,7 +524,6 @@ config GCC_PLUGIN_RANDSTRUCT >> config GCC_PLUGIN_RANDSTRUCT_PERFORMANCE >> bool "Use cacheline-aware structure randomization" >> depends on GCC_PLUGIN_RANDSTRUCT >> - depends on !COMPILE_TEST >> help >> If you say Y here, the RANDSTRUCT randomization will make a >> best effort at restricting randomization to cacheline-sized > > All three of these, though, please leave as they were. They're either > needlessly noisy for COMPILE_TEST (GCC_PLUGIN_CYC_COMPLEXITY and > *_VERBOSE), CONFIG_GCC_PLUGIN_CYC_COMPLEXITY is crazily annoying. I wonder if the right thing might be to dump the log to a separate report file instead of messing up the console, but this is a different issue. So I will keep this as-is. CONFIG_GCC_PLUGIN_STRUCTLEAK_VERBOSE prinkles 'userspace variable will be forcibly initialized' If this is a matter of warning level, we generally control this by W= option as you see in scripts/Makefile.extrawarn But, maybe I am wrong. I will keep this as-is until I figure out what is the right thing to do for warning verbosity. > or reduce the COMPILE_TEST coverage > (GCC_PLUGIN_RANDSTRUCT_PERFORMANCE). > Can you explain a bit more about GCC_PLUGIN_RANDSTRUCT_PERFORMANCE? IIUC, this option reduces the randomization. Is it related to COMPILE_TEST coverage? > (And perhaps a comment is needed to explain these to avoid confusion > in the future?) > > -Kees > > -- > Kees Cook > Pixel Security > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada