HomeFreeBSD

reaper_abandon_children(): upgrade proctree_lock assert to exclusive

Description

reaper_abandon_children(): upgrade proctree_lock assert to exclusive

p_reapsibling linkage is protected by proctree_lock, and it is modified
there.

Suggested and reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D35014

Details

Provenance
kibAuthored on Apr 26 2022, 2:44 PM
Differential Revision
D35014: Fix a race between fork(2) and PROC_REAP_KILL subtree
Parents
rGe59b940dcb45: unr(9): allow to avoid internal locking
Branches
Unknown
Tags
Unknown