On Tue, Aug 12, 2025 at 4:42 PM Baptiste Lepers baptiste.lepers@gmail.com 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@vger.kernel.org Signed-off-by: Baptiste Lepers baptiste.lepers@gmail.com
Only during CONFIG_CPUMASK_OFFSTACK=n, but yes.
Reviewed-by: Alice Ryhl aliceryhl@google.com