Re: [PATCH v3 1/2] rust: lockdep: Remove support for dynamically allocated LockClassKeys

From
Miguel Ojeda <hidden>
Date
2025-02-06 23:28:10
Also in
lkml, rust-for-linux, stable
Reply to
Mitchell Levy, 2025-02-05
On Wed, Feb 5, 2025 at 8:59 PM Mitchell Levy [off-list ref] wrote:
Currently, dynamically allocated LockCLassKeys can be used from the Rust
side without having them registered. This is a soundness issue, so
remove them.

Suggested-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/rust-for-linux/20240815074519.2684107-3-nmi@metaspace.dk/ (local)
Cc: <redacted>
Signed-off-by: Mitchell Levy <redacted>
I imagine we should have:

    Fixes: 6ea5aa08857a ("rust: sync: introduce `LockClassKey`")

Is that right?

Thanks!

Cheers,
Miguel
Thread (10 messages) 10 messages, 4 authors, last reply 2025-02-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help