The branch stable/14 has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=56b5818f9aa78ec7ae881cd901eadd889c56e6a2

commit 56b5818f9aa78ec7ae881cd901eadd889c56e6a2
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2025-08-29 20:14:58 +0000
Commit:     Konstantin Belousov <[email protected]>
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();

Reply via email to