Date: Thu, 4 Sep 2025 00:44:59 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 56b5818f9aa7 - stable/14 - kern/kern_thread.c: improve assert in thread_single_end() Message-ID: <202509040044.5840ixuc060613@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=56b5818f9aa78ec7ae881cd901eadd889c56e6a2 commit 56b5818f9aa78ec7ae881cd901eadd889c56e6a2 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2025-08-29 20:14:58 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2025-09-04 00:43:14 +0000 kern/kern_thread.c: improve assert in thread_single_end() (cherry picked from commit 8321d0da2ce294d83acc564f2c71fc3a023eb621) --- sys/kern/kern_thread.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index ec9127939f31..a41e74e1533e 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -1710,8 +1710,10 @@ thread_single_end(struct proc *p, int mode) thread_unlock(td); } } - KASSERT(mode != SINGLE_BOUNDARY || p->p_boundary_count == 0, - ("inconsistent boundary count %d", p->p_boundary_count)); + KASSERT(mode != SINGLE_BOUNDARY || P_SHOULDSTOP(p) || + p->p_boundary_count == 0, + ("pid %d proc %p flags %#x inconsistent boundary count %d", + p->p_pid, p, p->p_flag, p->p_boundary_count)); PROC_SUNLOCK(p); if (wakeup_swapper) kick_proc0();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509040044.5840ixuc060613>