← Back to archive

Daily update · Sep 2–3, 2026

Kernel config tweak improves Rust testing by adjusting randstruct default

Randstruct is now off by default when a Rust toolchain is available, allowing allmodconfig builds to include Rust.

In brief

This commit changes Kconfig defaults so that the randstruct hardening feature is disabled by default when a usable Rust toolchain is present. That workaround lets Rust support be enabled in allmodconfig, the kernel's standard coverage build. It's a build-system trade-off rather than a user-facing feature.

Build system

Default randstruct off with Rust for better allmodconfig support

Randstruct is a hardening feature that randomizes structure layout, but it doesn't support Rust. The previous Kconfig dependencies prevented Rust and randstruct from being enabled together, which also blocked Rust from allmodconfig. This commit disables randstruct by default when a usable Rust toolchain exists, working around the circular dependency.

Why it matters: Allmodconfig builds can now include Rust support. Kernels configured with Rust and default settings will have randstruct turned off, though it can still be enabled manually.

2625480a1bf7

Source commits1 entries +
2625480a1bf7

hardening: Default randstruct off with rust for better allmodconfig support

Mark Brown · Sep 1, 2026 · 1 files