git: 1203141df81a - stable/15 - procdesc_exit(): assert that _exit() was called

Konstantin Belousov <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a75a537.1d889.1948a332__32222.5994010054$1786094928$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=1203141df81a54d3f80a53650853ab49288d6218

commit 1203141df81a54d3f80a53650853ab49288d6218
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-05-21 17:37:47 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-08-07 09:27:15 +0000

    procdesc_exit(): assert that _exit() was called
    
    (cherry picked from commit aa1694e23401762c661da11bbf9016a368d37fbe)
---
 sys/kern/sys_procdesc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/kern/sys_procdesc.c b/sys/kern/sys_procdesc.c
index 953816077269..d29675b82b57 100644
--- a/sys/kern/sys_procdesc.c
+++ b/sys/kern/sys_procdesc.c
@@ -294,6 +294,7 @@ procdesc_exit(struct proc *p)
 	sx_assert(&proctree_lock, SA_XLOCKED);
 	PROC_LOCK_ASSERT(p, MA_OWNED);
 	KASSERT(p->p_procdesc != NULL, ("procdesc_exit: p_procdesc NULL"));
+	MPASS((p->p_flag & P_WEXIT) != 0);
 
 	pd = p->p_procdesc;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.