HomeFreeBSD

Fix a race between fork(2) and PROC_REAP_KILL subtree

Description

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

Details

Provenance
kibAuthored on Apr 20 2022, 9:33 PM
Reviewer
markj
Differential Revision
D35014: Fix a race between fork(2) and PROC_REAP_KILL subtree
Parents
rGd1df34736888: kern_procctl: add possibility to take stop_all_proc_block() around exec
Branches
Unknown
Tags
Unknown