From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3178A396573; Mon, 18 May 2026 21:05:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779138358; cv=none; b=d3ApOZBGb2GsGX0EIKLaL9ZE5ZguhHT3BRf62n4fzT48/QAsL3C1RMQylWrKhPzi42qSTAc+DNt/EUIGtSqSRAgFUsLBxs4poJqN8+TEXc4KAnbQYav4HK0jk6Rd6gxh4B4CfwnsJTYC1npJA6DSAOeDEXp+ynznB9yrIMP1w5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779138358; c=relaxed/simple; bh=KJU4Pz1uSq6DIJ3eWFe2ij4+hMv7Y2WX88sIUB6HKZI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MNSPgk0aLzjsMYpDLvKgcIAAdbeN3cDiY/4wHAxfWVTLD+z7NPKvdCD+0L4+YWjWDFLWjGRT1//nSSTwQJ4UkDCjILGphlCH9kED/es7R/dXG7qeRBpjm3XlXs8s8kbyeuOZZ9eSTbLYTjI6THNvWJKUvr+oMcz0iwo8OIuw+p4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ndd8fkzm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ndd8fkzm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D8BDC2BCB7; Mon, 18 May 2026 21:05:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779138357; bh=KJU4Pz1uSq6DIJ3eWFe2ij4+hMv7Y2WX88sIUB6HKZI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ndd8fkzmyskIs2Qdl3J7CkSceCEQ2VqBLBMLvxj5nl8ByZ0x3kwuVHnI4SMC9Euwp TwbZVOof4lbBs9lxo9cFGheU5C/eLT0Y0GhsuyXz5JCXZO6eDMa7g9cw0Xl7Aqp9gN d4XSn+UXio6Aq8TL/URGlRuHd2WICZg5SqrCpv+a1aEUNn58ISdt9OnvTQ+ZrwZU3K r6qEQDN9RoEYUT1+bvWCgMXx+4RHR/aawtBAeSkvXVKpOhrTrAnBY+QQyys+ukGLP9 9cD3N1Ue9XeCrZlBbwRr74SWZwD/FYF9Usj9vTdIv9jNBnihlp5Y+duL79oD3/eiJf 9tq1HB7zI1ggw== Date: Mon, 18 May 2026 14:05:52 -0700 From: Nathan Chancellor To: Arnd Bergmann Cc: Nicolas Schier , Bill Wendling , Justin Stitt , Nick Desaulniers , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-kbuild@vger.kernel.org, Kees Cook , "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH v2 02/16] security/Kconfig.hardening: Remove tautological condition from CC_HAS_ZERO_CALL_USED_REGS Message-ID: <20260518210552.GA3979157@ax162> References: <20260517-bump-minimum-supported-llvm-version-to-17-v2-0-b3b8cda46bdd@kernel.org> <20260517-bump-minimum-supported-llvm-version-to-17-v2-2-b3b8cda46bdd@kernel.org> <55186588-0cff-4908-923a-d5611707a3b0@app.fastmail.com> Precedence: bulk X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55186588-0cff-4908-923a-d5611707a3b0@app.fastmail.com> On Mon, May 18, 2026 at 09:48:47AM +0200, Arnd Bergmann wrote: > On Mon, May 18, 2026, at 01:05, Nathan Chancellor wrote: > > Now that the minimum supported version of LLVM for building the kernel > > has been raised to 17.0.1, the '!Clang || Clang > 15.0.6' dependency for > > CONFIG_CC_HAS_ZERO_CALL_USED_REGS is always true, so it can be removed. > > > > Reviewed-by: Nicolas Schier > > Signed-off-by: Nathan Chancellor > > Acked-by: Arnd Bergmann Thanks for taking a look! > > config CC_HAS_ZERO_CALL_USED_REGS > > def_bool $(cc-option,-fzero-call-used-regs=used-gpr) > > - # https://github.com/ClangBuiltLinux/linux/issues/1766 > > - # https://github.com/llvm/llvm-project/issues/59242 > > - depends on !CC_IS_CLANG || CLANG_VERSION > 150006 > > > > Maybe add a comment to mention that this now requires gcc-11, > that way we have it easier to remove the check when that becomes > the minimum version. Sure, I can add # supported by gcc-11 or newer and all supported versions of clang when I apply it. -- Cheers, Nathan