Re: [PATCH v4] hardening: Default randstruct off with rust for better allmodconfig support

From: Mark Brown

Date: Tue Sep 01 2026 - 19:11:46 EST


On Wed, Sep 02, 2026 at 12:59:59AM +0200, Miguel Ojeda wrote:
> On Wed, Sep 2, 2026 at 12:52 AM Mark Brown <broonie@xxxxxxxxxx> wrote:

> > Work around this by disabling randstruct by default if we have a usable
> > rust toolchain and rust support for the architecture, circular
> > dependencies prevent us directly depending on !RUST. This means we might
> > end up with a configuration that disables both rust and randstruct but
> > hopefully it's more likely go give the expected result.

> I thought this was already applied:

> https://git.kernel.org/kees/c/3844a38c9c4a

> https://lore.kernel.org/rust-for-linux/178733378275.2181196.3186172911325132761.b4-ty@xxxxxxxxxx/

> But it doesn't seem to be in -next -- that branch isn't merged there I think.

Yes, I had thought I'd seen something saying it was applied but as you
did I checked -next, didn't find it and figured I must have been
confused. The link in the mail above to the commit says it's missing
too.

Attachment: signature.asc
Description: PGP signature