[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250814042622.t2qx6mlelntxi77b@vireshk-i7>
Date: Thu, 14 Aug 2025 09:56:22 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: Baptiste Lepers <baptiste.lepers@...il.com>
Cc: stable@...r.kernel.org, Yury Norov <yury.norov@...il.com>,
Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <lossin@...nel.org>,
Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakr@...nel.org>, rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] rust: cpumask: Mark CpumaskVar as transparent
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@...r.kernel.org
> Signed-off-by: Baptiste Lepers <baptiste.lepers@...il.com>
> ---
> rust/kernel/cpumask.rs | 1 +
> 1 file changed, 1 insertion(+)
Applied. Thanks.
--
viresh
Powered by blists - more mailing lists