]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
proc: Remove assertion that P_WEXIT is not set in proc_rwmem()
authorMark Johnston <markj@FreeBSD.org>
Tue, 1 Mar 2022 20:08:25 +0000 (15:08 -0500)
committerMark Johnston <markj@FreeBSD.org>
Tue, 1 Mar 2022 20:09:45 +0000 (15:09 -0500)
commit879b0604a8940f575f03bde5457bcf13e64c1ae8
tree11286bdc401d92c57a602025352975526f685557
parent6882d53b7fb884d9fe390d579d4e48ca21d1a48f
proc: Remove assertion that P_WEXIT is not set in proc_rwmem()

exit1() sets P_WEXIT before waiting for holding threads to finish,
rather than after, so this assertion is racy.

Fixes: 12fb39ec3e6b ("proc: Relax proc_rwmem()'s assertion on the process hold count")
Reported by: Jenkins
sys/kern/sys_process.c