Re: [PATCH] Add -fzero-init-padding-bits to bindgen_skip_cflags

From: Kees Cook
Date: Thu Feb 06 2025 - 13:48:36 EST


On Thu, Feb 06, 2025 at 04:55:21PM +0100, Miguel Ojeda wrote:
> On Thu, Feb 6, 2025 at 4:45 PM Kees Cook <kees@xxxxxxxxxx> wrote:
> >
> > Thanks for this! I keep forgetting to keep flags in sync. I wonder if
> > there is a way to automate some kind of warning for this (even when
> > CONFIG_RUST=n)?
>
> You mean at editing time?
>
> > Reviewed-by: Kees Cook <kees@xxxxxxxxxx>
>
> Thanks! I will add it.
>
> > Miguel, I see you took this already -- is it planned to land for -rc2?
>
> Possibly, depends on how it goes; otherwise -rc3 -- why?

Many subsystems base their trees on -rc2, so if it missed rc2, Rust builds
in a given subsystem will be broken under gcc 15 (but fine in -next).
But perhaps that's enough of a corner case that it doesn't matter? I
have other fixes I'm sending to Linus tomorrow, if you'd rather it go in
sooner? I'm fine either way. :)

--
Kees Cook