HomeFreeBSD

reap_kill_subtree(): hold the reaper when entering it into the queue to handle…

Description

reap_kill_subtree(): hold the reaper when entering it into the queue to handle later

We drop proctree_lock, which allows the process to exit while memoized
in the list to proceed.

Reported and tested by: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D35310

Details

Provenance
kibAuthored on May 15 2022, 10:52 PM
Reviewer
markj
Differential Revision
D35310: Set of fixes for REAP_KILL_SUBTREE
Parents
rG1d4abf2cfa6e: reap_kill_subtree_once(): handle proctree_lock unlock in reap_kill_proc()
Branches
Unknown
Tags
Unknown