Skip to content

Commit 753a0f6

Browse files
committed
Merge tag 'locking_urgent_for_v6.16_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull locking fix from Borislav Petkov: - Make sure the new futex phash is not copied during fork in order to avoid a double-free * tag 'locking_urgent_for_v6.16_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: futex: Initialize futex_phash_new during fork().
2 parents dfba48a + a24cc6c commit 753a0f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/futex.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ void futex_hash_free(struct mm_struct *mm);
8989
static inline void futex_mm_init(struct mm_struct *mm)
9090
{
9191
RCU_INIT_POINTER(mm->futex_phash, NULL);
92+
mm->futex_phash_new = NULL;
9293
mutex_init(&mm->futex_hash_lock);
9394
}
9495

0 commit comments

Comments
 (0)