]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a race between fork(2) and PROC_REAP_KILL subtree
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 20 Apr 2022 21:33:51 +0000 (00:33 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 27 Apr 2022 23:27:35 +0000 (02:27 +0300)
commit39794d80ad900915e5c4940e9917ba5cb59a8634
tree499b77985dff8a43ff2268b35412c544daadc168
parentd1df34736888f43e8fe1cdc460eac134d625c777
Fix a race between fork(2) and PROC_REAP_KILL subtree

by repeating iteration over the subtree until there are no new processes
to signal.

Reported and tested by: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D35014
sys/kern/kern_procctl.c