Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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().

+1
+1
include/linux/futex.h
··· 89 89 static inline void futex_mm_init(struct mm_struct *mm) 90 90 { 91 91 RCU_INIT_POINTER(mm->futex_phash, NULL); 92 + mm->futex_phash_new = NULL; 92 93 mutex_init(&mm->futex_hash_lock); 93 94 } 94 95