aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2025-06-23 08:34:08 +0000
committerPeter Zijlstra <[email protected]>2025-06-23 12:50:37 +0000
commita24cc6ce1933eade12aa2b9859de0fcd2dac2c06 (patch)
tree9c537c581261c9995b89e8cd77d4a8eb7c896bc0 /lib/crypto/mpi/mpi-cmp.c
parentLinux 6.16-rc3 (diff)
downloadkernel-a24cc6ce1933eade12aa2b9859de0fcd2dac2c06.tar.gz
kernel-a24cc6ce1933eade12aa2b9859de0fcd2dac2c06.zip
futex: Initialize futex_phash_new during fork().
During a hash resize operation the new private hash is stored in mm_struct::futex_phash_new if the current hash can not be immediately replaced. The new hash must not be copied during fork() into the new task. Doing so will lead to a double-free of the memory by the two tasks. Initialize the mm_struct::futex_phash_new during fork(). Closes: https://lore.kernel.org/all/[email protected]/ Fixes: bd54df5ea7cad ("futex: Allow to resize the private local hash") Reported-by: Calvin Owens <[email protected]> Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Calvin Owens <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions