aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2025-09-18 13:09:45 +0000
committerThomas Gleixner <[email protected]>2025-09-24 07:20:02 +0000
commit4ec3c15462b9f44562f45723a92e2807746ba7d1 (patch)
tree29e9329d7ebbbcbd68d3de77e48c21473a315a18 /scripts/generate_rust_target.rs
parentfutex: Prevent use-after-free during requeue-PI (diff)
downloadkernel-4ec3c15462b9f44562f45723a92e2807746ba7d1.tar.gz
kernel-4ec3c15462b9f44562f45723a92e2807746ba7d1.zip
futex: Use correct exit on failure from futex_hash_allocate_default()
copy_process() uses the wrong error exit path from futex_hash_allocate_default(). After exiting from futex_hash_allocate_default(), neither tasklist_lock nor siglock has been acquired. The exit label bad_fork_core_free unlocks both of these locks which is wrong. The next exit label, bad_fork_cancel_cgroup, is the correct exit. sched_cgroup_fork() did not allocate any resources that need to freed. Use bad_fork_cancel_cgroup on error exit from futex_hash_allocate_default(). Fixes: 7c4f75a21f636 ("futex: Allow automatic allocation of process wide futex hash") Reported-by: [email protected] Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Steven Rostedt (Google) <[email protected]> Closes: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions