]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not call PHOLD() while owning the allproc_lock sx.
authorkib <kib@FreeBSD.org>
Sun, 3 Feb 2019 21:31:40 +0000 (21:31 +0000)
committerkib <kib@FreeBSD.org>
Sun, 3 Feb 2019 21:31:40 +0000 (21:31 +0000)
commitc53856ffbfabbf29c59aadfd6883a52572c01c66
treed5c9c6f1b2fb3ef10e1d29123b19a25486f906c1
parent38b15fd590695943376ffb87cd45f7ed4df1da4c
Do not call PHOLD() while owning the allproc_lock sx.

Otherwise the lock might recurse in faultin() if the process is
swapped out.

Reported by: zeising
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/kern/kern_proc.c