[PATCH v2 02/16] security/Kconfig.hardening: Remove tautological condition from CC_HAS_ZERO_CALL_USED_REGS

Nathan Chancellor nathan at kernel.org
Mon May 18 21:05:52 UTC 2026


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 <nsc at kernel.org>
> > Signed-off-by: Nathan Chancellor <nathan at kernel.org>
> 
> Acked-by: Arnd Bergmann <arnd at arndb.de>

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



More information about the Linux-security-module-archive mailing list