https://github.com/torvalds/linux
Revision b4e00444cab4c3f3fec876dc0cccc8cbb0d1a948 authored by Eddy Wu on 07 November 2020, 06:47:22 UTC, committed by Linus Torvalds on 08 November 2020, 19:18:39 UTC
current->group_leader->exit_signal may change during copy_process() if
current->real_parent exits.

Move the assignment inside tasklist_lock to avoid the race.

Signed-off-by: Eddy Wu <eddy_wu@trendmicro.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9dbc1c0
History
Tip revision: b4e00444cab4c3f3fec876dc0cccc8cbb0d1a948 authored by Eddy Wu on 07 November 2020, 06:47:22 UTC
fork: fix copy_process(CLONE_PARENT) race with the exiting ->real_parent
Tip revision: b4e0044
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 16.3 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 71 bytes
.gitattributes -rw-r--r-- 62 bytes
.gitignore -rw-r--r-- 1.8 KB
.mailmap -rw-r--r-- 17.4 KB
COPYING -rw-r--r-- 496 bytes
CREDITS -rw-r--r-- 97.8 KB
Kbuild -rw-r--r-- 1.3 KB
Kconfig -rw-r--r-- 555 bytes
MAINTAINERS -rw-r--r-- 562.4 KB
Makefile -rw-r--r-- 62.7 KB
README -rw-r--r-- 727 bytes

README

back to top