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

Kees Cook <[email protected]>
Newsgroups org.kernel.vger.linux-hardening,org.kernel.vger.linux-kernel,org.kernel.vger.linux-security-module,org.kernel.vger.rust-for-linux
Message-ID <[email protected]>
On Wed, 05 Aug 2026 18:02:43 +0100, Mark Brown wrote:
> Currently randstruct does not support rust so we have Kconfig dependencies
> which prevent rust being enabled when randstruct is. Unfortunately this
> prevents rust being enabled in allmodconfig, our standard coverage build.
> randstruct gets turned on by default, then the dependency on !RANDSTRUCT
> causes rust to get disabled.
> 
> 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.
> 
> [...]

Applied to for-next/hardening, thanks!

[1/1] hardening: Default randstruct off with rust for better allmodconfig support
      https://git.kernel.org/kees/c/3844a38c9c4a

Take care,

-- 
Kees Cook
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.