]> 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, 15 Mar 2022 15:40:22 +0000 (11:40 -0400)
commit7c27fee0ea1690445b98e29c12c8939983257c84
treec233142c2170b3c1db587c116ee97745a12bb6fb
parent76dcbd770d7b1e37e3fe14472d9f339b9180ebd8
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

(cherry picked from commit 879b0604a8940f575f03bde5457bcf13e64c1ae8)
sys/kern/sys_process.c