Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2522988pxb; Mon, 11 Jan 2021 11:51:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCK9+6RkxVKHE7hBozh/tbAIZYYhwVAaZsqYPNQXP+nIO6iQhfFuPlfq7GutIYaBj6AtwB X-Received: by 2002:a17:906:1f8e:: with SMTP id t14mr747150ejr.350.1610394713631; Mon, 11 Jan 2021 11:51:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610394713; cv=none; d=google.com; s=arc-20160816; b=sewtz2+x0zroECg5ZY0fYW+z1in1MUNNe6xgItH04d+2nZHPyxBw6kK+O6T84fDeIK LvmmBnG+FBuyzKJ80K+d6Q7L66mg7KoemtSSV7icVhetyB69CvvNvpPH2ItHJRg/CAnE hh7Okao6a3HkKfjqVCq+pKZLLcNafJCHmq9+Q2tpflMvG82JGZ0G+WNobdQ+BlGgadXV 0dTqe/9K4e6SXCnyP15r47Sfa9SPmlr+VtwMKCvNLfRdQXZcnjVz/jiZ0cd4zoeEYz+o PMPcEgu62R6HOTJ2azrt0sadwkc7rfIdbYJLZWWl9NobmEQ1xTGaA8H7+UwSmdoOEMVR R80Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=L2dO51YCX50/jqI3yiEYU3ac1GBJfHi3X0HQmwH4sZc=; b=dvWxZX9VgDsw9mptQZANAjPSb7b1I77WgTiZdUBoHd3Rj+p9UwOCLs4dA7iIIP3uVb KtB+JAFFgJpviQUCPEF5+qINKhKkdNqw9xWT+7qbxq2EntFMK5K4psG8lw+Fi9m/34Zy 0gHGng1xobBn2gcGSoZ6z2BVUm13DvAUll3ftUfV0rO2655dTUtEZfIe9Vizt1RjvCTX VRpQ6hwkaLfmBOvPsWZuE3pQhN2g9EaF5ko1fMT6eesUZ10IG8TPMiZyn174jl5Y+X8I ufnbC7u+xfUdmeU3ckUIVqVBHIhQRY3hDZnX0Wa70oKOY42/EtyJVgLNtvueiPubcafj MfOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=k2V72fKF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a24si299431edy.25.2021.01.11.11.51.30; Mon, 11 Jan 2021 11:51:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=k2V72fKF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2404055AbhAKTtP (ORCPT + 99 others); Mon, 11 Jan 2021 14:49:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388832AbhAKTtP (ORCPT ); Mon, 11 Jan 2021 14:49:15 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BED64C061795 for ; Mon, 11 Jan 2021 11:48:34 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id m6so592610pfk.1 for ; Mon, 11 Jan 2021 11:48:34 -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:content-transfer-encoding:in-reply-to; bh=L2dO51YCX50/jqI3yiEYU3ac1GBJfHi3X0HQmwH4sZc=; b=k2V72fKFl01J3y3Dzl0Pb6pZuFQYuafr+l3lvOn50o/U0VCG+t32afav1f0rmeUdbK Kl/J/+vHfWdWmmgtWD94eQ1MAdyNlwvQqBdDRS6AvUsQLjIQu0ILWUBNQAmeB/0VrrEi WNISKNaK+FzpOLMwl+JNKvVcbNYHPUNiq6NeE= 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:content-transfer-encoding :in-reply-to; bh=L2dO51YCX50/jqI3yiEYU3ac1GBJfHi3X0HQmwH4sZc=; b=KkSnGoa3U7oXoq6pgHdwQPFR6YOOfhZq9hD9DGhNEf2+wE+fftMNh3nLOvSlrxbDIv VVDaYVX1HC8QDJItp+GoO1NBq9qA1YDaNTKyUW0gy9pmmsMfPpNl/NGiVIB9P5Zv9qDo +SM0XCxGzEx+EIIwT13dbjotbz+lh4PG0W2ry2dCQEV8w7b8I1xNKy/rxxoHJ4H/wrCa IfRv+VwG8w8/1m4J01ERCUaM8U+sqTQobeAcaUIlmiWGYuqt75lzt695FSCBNDMPlEEn CwpkQttE+awqEu0F0W/BX70pJ51NDmunl7XJrfzAcastdOOoaV1iEnlIeomRH4/cCs5E x5gw== X-Gm-Message-State: AOAM5334BSrBnpTWg6qNyWZ5b994jdyanE8/41BFfLhktziawXJWw7Me iCde2jNbpAx6CNszFaoHLEtZvQ== X-Received: by 2002:a62:79cd:0:b029:1a8:4d9b:921a with SMTP id u196-20020a6279cd0000b02901a84d9b921amr953318pfc.33.1610394514381; Mon, 11 Jan 2021 11:48:34 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id h12sm579029pgs.7.2021.01.11.11.48.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:48:33 -0800 (PST) Date: Mon, 11 Jan 2021 11:48:32 -0800 From: Kees Cook To: Josh Poimboeuf Cc: Valdis =?utf-8?Q?Kl=C4=93tnieks?= , Geert Uytterhoeven , linux-hardening@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH] gcc-plugins: fix gcc 11 indigestion with plugins... Message-ID: <202101111148.CDE77FF@keescook> References: <82487.1609006918@turing-police> <160997457204.3687425.15622431721220616573.b4-ty@chromium.org> <122278.1610362619@turing-police> <128149.1610368277@turing-police> <20210111133719.w53ad4xnw5yyi2lf@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210111133719.w53ad4xnw5yyi2lf@treble> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021 at 07:37:19AM -0600, Josh Poimboeuf wrote: > On Mon, Jan 11, 2021 at 07:31:17AM -0500, Valdis Klētnieks wrote: > > On Mon, 11 Jan 2021 05:56:59 -0500, I said: > > > > > > It's probably related. I'm just having a hard time understanding why 4.9 and 5.4 > > > > whine about the lack of a space, while 8.3 and 11 didn't complain... > > > > So after more digging, at least some clarity has surfaced. > > > > It looks like it's not a kernel source tree issue, it's a g++ issue fixed in g++ 6 and later. > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69959 > > > > And it looks like there was an intent to backport it to 4.9 and 5.4: > > https://gcc.gnu.org/legacy-ml/gcc-patches/2016-02/msg01409.html > > > > The bugtracker doesn't show an equivalent for 69959 being closed against 4.9.x or 5.[56], > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63254 has a patch for one of the > > gcc-supplied files that tosses the warning, but that way lies madness... > > > > Not sure what we want to do here - the main alternatives I see are: > > > > Tell people still using 4.9/5.4 to either live with the warning or upgrade to 6 or later > > > > Make the flag a variable and pass either -std=gnu++98 or -std=gnu++11 > > depending on the output of 'g++ --version' > > > > What say the peanut gallery? > > I think putting the flag in a variable (based on call cc-ifversion) > should be easy enough, then we can put this little saga behind us and > pretend it never happened :-) Yeah, that seems best. Valdis, can you send a patch for this? -- Kees Cook