Re: [PATCH v2] rust: allow Clang-native `RANDSTRUCT` configs
From: Miguel Ojeda
Date: Mon Mar 23 2026 - 11:02:25 EST
On Mon, Mar 23, 2026 at 2:46 PM Gary Guo <gary@xxxxxxxxxxx> wrote:
>
> Can we avoid cfgs by always wrap things inside anonymous struct?
>
> The comment says "This anon struct can add padding, so only enable it under
> randstruct.", I wonder how much bigger the task_struct will be if this becomes
> unconditional wrapping.
Yeah, we may want to do that -- please see
https://lore.kernel.org/rust-for-linux/202512092319.ECBB8613@keescook/
from v1.
Cheers,
Miguel