We leaked a process lock reference in the event an RFTHREAD process
leader wasn't exiting during a fork; instead, do remember to release the lock avoiding lock order reversals and recursion panic. Reported by: "Joel M. Baldwin" <qumqats@outel.org>
This commit is contained in:
parent
bfd8325073
commit
293d2d2261
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107061
@ -587,7 +587,8 @@ fork1(td, flags, pages, procp)
|
||||
PROC_LOCK(p2);
|
||||
psignal(p2, SIGKILL);
|
||||
PROC_UNLOCK(p2);
|
||||
}
|
||||
} else
|
||||
PROC_UNLOCK(p1->p_leader);
|
||||
} else {
|
||||
p2->p_peers = NULL;
|
||||
p2->p_leader = p2;
|
||||
|
Loading…
Reference in New Issue
Block a user