Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14524502ybl; Mon, 30 Dec 2019 11:43:46 -0800 (PST) X-Google-Smtp-Source: APXvYqyOeTdEB7rVLuoAD/PgklGElgcGKHFJz1yktDK5hhOdVCAx3Y/LbqOtBMjL2F2o5hblyLxV X-Received: by 2002:a05:6830:20c6:: with SMTP id z6mr72008775otq.272.1577735026253; Mon, 30 Dec 2019 11:43:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577735026; cv=none; d=google.com; s=arc-20160816; b=0zS//uMpTZpbPtrW/sy1dMpj/NYfLnU7tLwKRe9CQs/TnR7reCFdBb3DalIiSY49uP kYuc0d99D6chmZ7KV7P/sGd/tuqxEg2TpVpEPwlq3E8jf7jCPm6p6M2P9OR4QFeLVR5X m7QlcnTPrhUWJt2RpT4LMyaaqfUYnGqcHrLTehneF5seDyIpcHOP+BqarMR5pM7bxUQa hbsbLGocbELITPYDE+Ivb0vCl3m9tOlzLwbwiLeMUo5Wh/im/M/4qWm68MmEkBlaUvsK FxiFfKVt5dKRibxK2gOFqMv1yApWeISG8Bw1bhzOJPspfLHn1QiGdZO4DFnuQizfRtpe 1Phw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=PkkLXDj8HeyoAsXSUf7EB7C7ycPCZ7nOePq2CDe6W7A=; b=0flGJguYkQEM0hHCFCLqR9LTGwjzVtHjx8+5pnw4T1zEkxkIC7PSlGg3SolHjXEtVe 3yxMLzDYwJUWF4eB5YOSEKLJg1N049bv08JyQPMCgNfUULncOtkCPuqD9Srb+esWCdp+ 3fhqOp6BmDP5Dvmgznm1GsyTwwqPcnTlWlaOsZfSnyvMVqMq+Fz31k3NyVVt9k9M5nK+ mOPriDj6vs0W6bqQWOBdpTMod5WTmcdMEKoO+/NNPpWUc+ApUgkPCs1EVpHlTp3+yFxr P2JYTpdIJLBx8sV4fy32NKI0r/N8RLy3pdCLA8IYquV/DsKnppLct+qkcB1d/rxjH11a gQVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VhyEFlYR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11si5686967oic.185.2019.12.30.11.43.35; Mon, 30 Dec 2019 11:43:46 -0800 (PST) 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=@chromium.org header.s=google header.b=VhyEFlYR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727714AbfL3Tlr (ORCPT + 99 others); Mon, 30 Dec 2019 14:41:47 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:42977 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727278AbfL3Tlr (ORCPT ); Mon, 30 Dec 2019 14:41:47 -0500 Received: by mail-ot1-f65.google.com with SMTP id 66so47415587otd.9 for ; Mon, 30 Dec 2019 11:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=PkkLXDj8HeyoAsXSUf7EB7C7ycPCZ7nOePq2CDe6W7A=; b=VhyEFlYR+ibRZhAU/Zlt2WaACOPEq9e9Vua53F8j4jJDylYSIMjRh8PTNivSdiOxNH GsF4EZ4lDP4c63w3DIq6yAiRMC7U2Wjn4E1OYu9+mjH50XgD09xcHuyi4vW53UbRh0Si PcAeooP0hmoYMydJKlP+uyiavUfPJ6ELFhEAg= 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; bh=PkkLXDj8HeyoAsXSUf7EB7C7ycPCZ7nOePq2CDe6W7A=; b=fUXYVEp8NX45b3jRhIn26V/Nd6WUkD3M6zodLNrN/nLnV7uzHIqix1c4ekjkY1gR6B 90V6NVFlQ3i0Tq9HrAwQfmZZ12Qzt5N+9LcpbcM9ORjlfZVjJFEgPT4EU/oXIXYEIvYh VOzt64vE272561XNRERrENGOYZ7UjVUxzJsPHhS+YohSsDvPkpcylhHOmyGEvHYFFs0Z BKUd3zwOXzRuUyfGlm2rnhXW5JhllpKEh5i0bmi2e9FozFWm6AYmner/54O8YMCxOYtk 7TirpReLGbxyTP6tfsEtnlTGjd+ck/X8qC4PZSrk1laAhjzOSDGsSwSPjnXpnLv3nYxK YlVw== X-Gm-Message-State: APjAAAVlb1uPYooIBzSZ25+UAcGkrFD2Vev8DjCZpUtdsRjOfpije2p+ fVdr/UU7l8y0z2bHp8mc4z3CNw== X-Received: by 2002:a05:6830:13d9:: with SMTP id e25mr73720379otq.134.1577734906535; Mon, 30 Dec 2019 11:41:46 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id k17sm14025460oic.45.2019.12.30.11.41.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 11:41:45 -0800 (PST) Date: Mon, 30 Dec 2019 11:41:44 -0800 From: Kees Cook To: Masahiro Yamada Cc: Arnd Bergmann , Emese Revfy , Ard Biesheuvel , Andrey Ryabinin , Kernel Hardening , Linux Kernel Mailing List , clang-built-linux , Andrew Morton Subject: Re: [PATCH] gcc-plugins: make it possible to disable CONFIG_GCC_PLUGINS again Message-ID: <201912301141.38C6F7E0@keescook> References: <20191211133951.401933-1-arnd@arndb.de> <201912120943.486E507@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 14, 2019 at 05:56:34PM +0900, Masahiro Yamada wrote: > On Fri, Dec 13, 2019 at 2:44 AM Kees Cook wrote: > > > > On Thu, Dec 12, 2019 at 10:59:40AM +0100, Arnd Bergmann wrote: > > > On Thu, Dec 12, 2019 at 5:52 AM Masahiro Yamada wrote: > > > > > > > > On Wed, Dec 11, 2019 at 10:40 PM Arnd Bergmann wrote: > > > > > > > > > > I noticed that randconfig builds with gcc no longer produce a lot of > > > > > ccache hits, unlike with clang, and traced this back to plugins > > > > > now being enabled unconditionally if they are supported. > > > > > > > > > > I am now working around this by adding > > > > > > > > > > export CCACHE_COMPILERCHECK=/usr/bin/size -A %compiler% > > > > > > > > > > to my top-level Makefile. This changes the heuristic that ccache uses > > > > > to determine whether the plugins are the same after a 'make clean'. > > > > > > > > > > However, it also seems that being able to just turn off the plugins is > > > > > generally useful, at least for build testing it adds noticeable overhead > > > > > but does not find a lot of bugs additional bugs, and may be easier for > > > > > ccache users than my workaround. > > > > > > > > > > Fixes: 9f671e58159a ("security: Create "kernel hardening" config area") > > > > > Signed-off-by: Arnd Bergmann > > > > > > > > Reviewed-by: Masahiro Yamada > > > > > > On Wed, Dec 11, 2019 at 2:59 PM Ard Biesheuvel > > > wrote: > > > >Acked-by: Ard Biesheuvel > > > > > > Thanks! Who would be the best person to pick up the patch? > > > Should I send it to Andrew? > > > > Acked-by: Kees Cook > > > > I can take it in my tree, or I'm happy to have Masahiro take it. > > > > -- > > Kees Cook > > Kees, > Please apply it to your tree. Thanks, applied! -- Kees Cook