summaryrefslogtreecommitdiff
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2025-09-26 22:28:32 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2025-09-26 22:28:32 +0300
commit2cea0ed9796381b142f46bd8de97bb6b54b1df61 (patch)
tree51bff718bfb5e2ad687f9e0e82c1d95c4dac5a22 /kernel/fork.c
parent8b07f74c23a0890977a5ae3c0b2c105d7ac3b584 (diff)
parent4ec3c15462b9f44562f45723a92e2807746ba7d1 (diff)
downloadlinux-2cea0ed9796381b142f46bd8de97bb6b54b1df61.tar.xz
Merge tag 'locking-urgent-2025-09-26' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull locking fixes from Ingo Molnar: "Fix a PI-futexes race, and fix a copy_process() futex cleanup bug" * tag 'locking-urgent-2025-09-26' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: futex: Use correct exit on failure from futex_hash_allocate_default() futex: Prevent use-after-free during requeue-PI
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index c4ada32598bd..6ca8689a83b5 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -2295,7 +2295,7 @@ __latent_entropy struct task_struct *copy_process(
if (need_futex_hash_allocate_default(clone_flags)) {
retval = futex_hash_allocate_default();
if (retval)
- goto bad_fork_core_free;
+ goto bad_fork_cancel_cgroup;
/*
* If we fail beyond this point we don't free the allocated
* futex hash map. We assume that another thread will be created