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

Mark Brown <[email protected]> Mon, 13 Jul 2026 15:02:44 +0100
Newsgroups org.kernel.vger.linux-security-module,org.kernel.vger.linux-hardening,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux
Message-ID <[email protected]>
On Mon, Jul 13, 2026 at 03:58:11PM +0200, Miguel Ojeda wrote:
> On Mon, Jul 13, 2026 at 3:55 PM Gary Guo <[email protected]> wrote:

> > I thought Miguel wants to add support to properly support RANDSTRUCT with Clang?

It would be great to have randstruct support for clang and Rust but we
do not currently have that support.

> I am happy either way, i.e. whatever the hardening folks prefer, but
> regardless of what we do, I think recovering the linux-next coverage
> is a high priority at the moment.

Yeah, when randstruct support is added we can remove all the constraints
around it and clang/Rust - this patch is about the making the current
situation work more usefully, it's not intended to be a final state.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmpU8AMACgkQJNaLcl1U
h9AEnAf8C08rWR2J+LlDhnvdUsW8FfmIZxPHJOOw7aq8rbp79koBHEF7MWL/Rqx0
dFQr2Hq57OiL4sxSAAs7/xmBWMIOyxg5mRGvTWxrLHThsH8nYy5qALuVzYirwUEi
YxoByDhn6CNn3gMUyKn0TJz6lcx/6P/KYwlnTQvMab4rlRv/0LkHIJSwzVbh/goS
DOoxgEQGHUgEw+ukYjhbiYzaYN0RrpCKf5TCJbCpIdNJh+oZeiFwSVqR463XR9Be
T/m83k1xVt19J+NzKQj35nwLvtBAPHX6cZQMA8s6F7Zl/SRGitPjMMyBiYtLh+8i
WLZSOowFjWkFfnEPlMM5oeEPzR4fiA==
=XjjB
-----END PGP SIGNATURE-----