linux/drivers/android/binder
Alice Ryhl 6c37bebd8c rust_binder: avoid mem::take on delivered_deaths
Similar to the previous commit, List::remove is used on
delivered_deaths, so do not use mem::take on it as that may result in
violations of the List::remove safety requirements.

I don't think this particular case can be triggered because it requires
fd close to run in parallel with an ioctl on the same fd. But let's not
tempt fate.

Cc: stable@vger.kernel.org
Fixes: eafedbc7c0 ("rust_binder: add Rust Binder driver")
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://patch.msgid.link/20251111-binder-fix-list-remove-v1-2-8ed14a0da63d@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-11-26 13:26:59 +01:00
..
node
range_alloc
Makefile
allocation.rs
context.rs
deferred_close.rs
defs.rs
error.rs
freeze.rs rust_binder: report freeze notification only when fully frozen 2025-10-13 11:06:20 +02:00
node.rs rust_binder: fix race condition on death_list 2025-11-26 13:26:59 +01:00
page_range.rs
page_range_helper.c
page_range_helper.h
process.rs rust_binder: avoid mem::take on delivered_deaths 2025-11-26 13:26:59 +01:00
rust_binder.h
rust_binder_events.c
rust_binder_events.h
rust_binder_internal.h
rust_binder_main.rs rust_binder: use compat_ptr_ioctl 2025-11-26 13:24:25 +01:00
rust_binderfs.c
stats.rs
thread.rs rust_binder: move BC_FREE_BUFFER drop inside if statement 2025-11-26 13:24:28 +01:00
trace.rs
transaction.rs rust_binder: report freeze notification only when fully frozen 2025-10-13 11:06:20 +02:00