Re: [PATCH] rust: cpumask: Mark CpumaskVar as transparent

From: Viresh Kumar
Date: Thu Aug 14 2025 - 00:28:39 EST


On 12-08-25, 16:42, Baptiste Lepers wrote:
> Unsafe code in CpumaskVar's methods assumes that the type has the same
> layout as `bindings::cpumask_var_t`. This is not guaranteed by
> the default struct representation in Rust, but requires specifying the
> `transparent` representation.
>
> Fixes: 8961b8cb3099a ("rust: cpumask: Add initial abstractions")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Baptiste Lepers <baptiste.lepers@xxxxxxxxx>
> ---
> rust/kernel/cpumask.rs | 1 +
> 1 file changed, 1 insertion(+)

Applied. Thanks.

--
viresh