Re: [PATCH] gcc-plugins: Disable GCC plugins for compile test builds

From: Kees Cook
Date: Tue Apr 15 2025 - 16:43:19 EST


On Tue, Apr 15, 2025 at 09:41:06PM +0100, Mark Brown wrote:
> On Tue, Apr 15, 2025 at 01:26:34PM -0700, Palmer Dabbelt wrote:
> > On Mon, 07 Apr 2025 13:57:32 PDT (-0700), broonie@xxxxxxxxxx wrote:
>
> > > In current mainline x86_64 allmodconfig builds done with tuxmake GCC 13
> > > and GCC 14 toolchains (which are Debian ones packaged up into containers)
> > > generate ICEs in landlock:
>
> > This one's been biting me too. It manifests for me on gcc-12 and gcc-13
> > (both locally built toolchains off the release branches, cross compiling for
> > RISC-V).
>
> > Tested-by: Palmer Dabbelt <palmer@xxxxxxxxxxxx>
>
> Kees has a narrower workaround for this:
>
> https://lore.kernel.org/all/20250409151154.work.872-kees@xxxxxxxxxx/
>
> It's in -next but not pending-fixes, I'm not sure what the plan is for
> getting this into mainline - Kees? The commit log mentions getting it
> in for -rc2 so I think the plan is to merge it as a fix.

Yeah, I missed -rc2, and will send it to Linus for -rc3 (with other
stuff) probably tomorrow.

--
Kees Cook