[GIT PULL] futex fix

Ingo Molnar posted 1 patch 4 days, 10 hours ago
kernel/fork.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[GIT PULL] futex fix
Posted by Ingo Molnar 4 days, 10 hours ago

Linus,

Please pull the latest locking/urgent Git tree from:

   git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-urgent-2026-09-20

for you to fetch changes up to b61b6f95d6722ddbbbd09e689fa41b55fd36f9a5:

 - Also allocate a default private futex hash on vfork()
   as well, to avoid races with (private) futex waiters
   (Peter Zijlstra)

 Thanks,

	Ingo

------------------>
Peter Zijlstra (1):
      futex: Also allocate private hash on vfork()


 kernel/fork.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/fork.c b/kernel/fork.c
index a5934a317634..5ef413368912 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1996,9 +1996,9 @@ static bool need_futex_hash_allocate_default(u64 clone_flags)
 {
 	/*
 	 * Allocate a default futex hash for any sibling that will
-	 * share the parent's mm, except vfork.
+	 * share the parent's mm.
 	 */
-	return (clone_flags & (CLONE_VM | CLONE_VFORK)) == CLONE_VM;
+	return clone_flags & CLONE_VM;
 }
 
 /*
Re: [GIT PULL] futex fix
Posted by pr-tracker-bot@kernel.org 4 days, 2 hours ago
The pull request you sent on Sun, 20 Sep 2026 11:31:50 +0200:

> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-urgent-2026-09-20

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/bdab18633a302c82b5e5d5dbc4e38b0baf9c0837

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html