Thread View: muc.lists.freebsd.bugs
18 messages
18 total messages
Started by bugzilla-noreply
Tue, 24 Nov 2026 08:08
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 08:08
Date: Tue, 24 Nov 2026 08:08
141 lines
8263 bytes
8263 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072
Bug ID: 301072
Summary: procdesc: procdesc_close() links a traced child onto
its own reaper's orphan list, panicking the kernel at
child exit
Product: Base System
Version: 16.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: laamalif@proton.me
CC: kib@FreeBSD.org
procdesc: procdesc_close() links a traced child onto its own reaper's
orphan list, panicking the kernel at child exit
procdesc_close() handles the last close of a process descriptor for a
still-running traced child by linking it onto its reaper's orphan
list without checking that the reaper is not already the child's
parent:
} else {
proc_clear_orphan(p);
p->p_oppid = p->p_reaper->p_pid;
proc_add_orphan(p, p->p_reaper);
}
(sys/kern/sys_procdesc.c:473-477, verified on main 408af93b4bb3; the
same unconditional call is on stable/15 and releng/15.1.)
When the closing process has PROC_REAP_ACQUIRE'd, p_reaper == p_pptr,
so the child ends up on its own parent's orphan list. The
proc_realparent() invariant asserts an orphaned child's real parent
differs from the list owner (sys/kern/kern_exit.c:127,
af495ad4a98a "proc_realparent(): assert that an orphaned child has
real parent != parent"), and killjobc() calls proc_realparent() on
exit1() of the child, so the child's exit after the close panics an
INVARIANTS kernel. The reproducer exits the child with kill(2)
after a PT_DETACH (observed, twice); the SIGKILL that
procdesc_close_tail() itself sends for a non-PD_DAEMON descriptor
takes the same exit1() path (verified from source, not run
separately).
The trigger needs no privilege:
procctl(P_PID, getpid(), PROC_REAP_ACQUIRE, NULL);
pdfork(&fd, PD_DAEMON | PD_NOWAITPID);
/* child: close(fd); ptrace(PT_TRACE_ME); raise(SIGSTOP); */
/* parent: waitpid(stop); close(fd);
ptrace(PT_DETACH, child); kill(child, SIGKILL); */
PD_NOWAITPID is required on main/stable-15 because kern_fork.c sets
PZOMBIEREF_PARENT for the child otherwise, and procdesc_close()'s
outer guard skips the whole branch when that bit is present
(bcdb6ba94d08 "processes: add zombie references, each of them
prevents reap"). On releng/15.1 the call runs for plain PD_DAEMON
too, since the zombieref guard does not exist there.
Two effects, both reproduced on 16.0-CURRENT GENERIC-KASAN
(main-6edecf52def6-dirty, Nov 22 2026 build) as a non-root user:
1. Kernel panic. Two runs, two boots, identical panic:
panic: proc 2147 0xfffffe0145327038 orphaned but parent 2146
0xfffffe00f2830000 is realparent
KDB: stack backtrace:
proc_realparent() at proc_realparent+0x173
killjobc() at killjobc+0x421
exit1() at exit1+0xa40
kern_exit() at kern_exit+0x13f
sigexit() at sigexit+0x137
Reading the crash dump with kgdb (first run's dump, vmcore.0)
shows the panicking thread is the CHILD (PID 2131, command "rso"),
in exit1(td, rval=0, signo=9): the parent's explicit SIGKILL is
delivered on the child's return to user mode, and its exit walks
the self-orphan link through killjobc() -> jobc_parent() ->
proc_realparent() (panic at kern_exit.c:127). The second run's
dump (vmcore.1, pids 2147/2146, cpuid=1) has the identical stack.
Full traces of both panics are in the observed-evidence
attachment.
2. Unreapable zombie, no panic. Verified from source on main: a
traced child that exits while still traced (no detach) becomes a
zombie with p_zombieref == 0 that no waitpid() can collect, since
kern_wait's P_ALL guard (kern_exit.c:1225) and proc_to_reap
(kern_exit.c:1281) both reject it. The same strand reproduces in
the untraced arm (observed on the same kernel):
waitpid(2114, WNOHANG) = -1 errno=10
kill(2114, 0) = 0 errno=10
The untraced arm reaches the same p_zombieref == 0 state through
proc_reparent()'s early return: for a self-reaper,
proc_reparent(p, p->p_reaper, true) returns at the
"if (child->p_pptr == parent)" check without executing the tail
that re-grants PZOMBIEREF_PARENT (kern_exit.c:1710-1714), so an
untraced PD_NOWAITPID child of a self-reaper SIGKILLs at close
and its zombie is equally stranded. The observed line above is
that untraced run (repro_untraced_strand.c); I did not run the
still-traced variant on a non-INVARIANTS main kernel.
Controls: with CONTROL=1 (same sequence, no PROC_REAP_ACQUIRE) the
child is handed to init and both reproducers reap cleanly. On
15.1-RELEASE-p7 GENERIC the trigger and control both reap normally
(the orphan-add is present but self-heals: proc_realparent() has no
assert there, and exit1()'s traced-children loop clears the orphan
link before any walk); on 16.0-CURRENT main-n287061 (June 2026
GENERIC, predating bcdb6ba94d08) both run clean as well. So the
user-visible defect is main and stable/15: on main, amd64 GENERIC
includes std.debug, so the stock GENERIC kernel has the assert and
panics; stable/15 GENERIC does not include std.debug, so there the
defect is the unreapable zombie.
The attached patch checks p_pptr != p_reaper before adding the
orphan link, and grants PZOMBIEREF_PARENT to the child in the two
self-reaper arms so the zombie stays collectable, mirroring what
proc_reparent()'s tail does for a real reparent. I booted a
GENERIC-KASAN kernel built from main + this patch (build and boot
2026-11-24, same config as the panic kernel): the traced trigger
that panicked the stock kernel now returns from waitpid with the
child's status (status=0x9), the untraced trigger collects normally
instead of stranding a zombie, and the control run is unchanged.
No KASAN report fired on the patched kernel.
I have not tested the patch on stable/15 or on any release branch,
and not on arm64.
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 08:08
Date: Tue, 24 Nov 2026 08:08
16 lines
2495 bytes
2495 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #2 from laamalif@proton.me --- Created attachment 277636 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277636&action=edit repro_self_orphan.c -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 08:08
Date: Tue, 24 Nov 2026 08:08
16 lines
2499 bytes
2499 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #3 from laamalif@proton.me --- Created attachment 277637 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277637&action=edit repro_untraced_strand.c -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 08:08
Date: Tue, 24 Nov 2026 08:08
16 lines
2494 bytes
2494 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #4 from laamalif@proton.me --- Created attachment 277638 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277638&action=edit observed-evidence.txt -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 08:08
Date: Tue, 24 Nov 2026 08:08
13 lines
2384 bytes
2384 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #5 from laamalif@proton.me --- HASH(0x2a657cf2da38) -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 08:17
Date: Tue, 24 Nov 2026 08:17
14 lines
2465 bytes
2465 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #6 from Konstantin Belousov <kib@FreeBSD.org> --- Would you convert the reproducers into the tests added to tests/sys/kern/procdesc.c? -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 08:52
Date: Tue, 24 Nov 2026 08:52
14 lines
2479 bytes
2479 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #7 from Konstantin Belousov <kib@FreeBSD.org> --- Ok, I somewhat rewrote the patch, and auto-converted the tests. https://reviews.freebsd.org/D61975 -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 09:03
Date: Tue, 24 Nov 2026 09:03
20 lines
2549 bytes
2549 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #8 from laamalif@proton.me --- Please use: Author: Laam Alif <laamalif@proton.me> Reported by: Laam Alif at Ibteda Digital Library PR: 301072 (Sorry for the junk comment above: my API client posted a malformed payload for this same text.) -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 09:15
Date: Tue, 24 Nov 2026 09:15
49 lines
4135 bytes
4135 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #9 from laamalif@proton.me --- I ran the D61975 tests against a GENERIC-KASAN kernel built from main plus your restructured patch (same tree and config as the panic reproduction, 16.0-CURRENT main-6edecf52def6-dirty). reaper_child_close: passed. reaper_child_close_traced and reaper_child_close_traced_exit fail in the harness, but not from the fix. The failure is a race in the test setup: the parent's waitpid(child, &status, 0) runs before the child has completed ptrace(PT_TRACE_ME), and wait4() returns ECHILD for the still-running child at that point. ktrace of the failing run shows the ordering directly: 2994 tp5 CALL pdfork(0x820cb470c,0x5) 2995 tp5 RET pdfork 0 2994 tp5 RET pdfork 2995/0xbb3 2994 tp5 CALL wait4(2995,0x820cb4708,0,0) 2994 tp5 RET wait4 -1 errno 10 No child processes 2995 tp5 CALL ptrace(PT_TRACE_ME,0,0,0) 2995 tp5 RET ptrace 0 2995 tp5 CALL thr_kill(0x1884c,SIGSTOP) 2995 tp5 RET thr_kill 0 The child is alive, on the children list, and becomes traced a few microseconds later; the wait still returns ECHILD immediately. With a pipe handshake so the parent only waits after the child confirms PT_TRACE_ME, the same sequence passes every time (3/3), and without the handshake it fails every time (3/3) on this kernel. My attached reproducers poll waitpid(WUNTRACED|WNOHANG) in a loop, which is why they do not hit it. This looks like a wait4() issue in its own right: a P_PID wait on a live child returning ECHILD before the child is traced, instead of blocking. It is independent of the procdesc_close fix (the failing wait happens before any close). I can file it separately if you want it tracked; happy to also re-run the tests with the handshake if you want to keep the tests as they are. -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 09:46
Date: Tue, 24 Nov 2026 09:46
16 lines
2453 bytes
2453 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #10 from laamalif@proton.me --- Created attachment 277639 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277639&action=edit observed-evidence.txt -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 09:46
Date: Tue, 24 Nov 2026 09:46
23 lines
3067 bytes
3067 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #11 from laamalif@proton.me --- Correction: in the first observed-evidence.txt upload, the "STOCK KERNEL, control" block was mislabeled. The output it showed was the patched boot's control run (child 2119); the actual stock-kernel control runs were child 2128 (first boot) and child 2140 (second boot). I have re-uploaded the evidence file with the stock control block replaced by the first boot's verbatim output and the run labeling corrected. The control result is unchanged in substance: on the stock kernel the control hands the child to init cleanly (ECHILD/ ESRCH), same as on the patched kernel. The trigger and panic blocks were always labeled with their own runs' pids (2131/2130 and 2147/2146) and are unaffected. -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 10:59
Date: Tue, 24 Nov 2026 10:59
18 lines
2663 bytes
2663 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #12 from Konstantin Belousov <kib@FreeBSD.org> --- Hm, no, it is the race in the test I believe. I called pdfork(PD_NOWAITPID) which should behave exactly as your trace shown. Until the process is traced, it is invisible for the parent AKA debugger. So if you provide the fix for the tests it would be enough, I believe. -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 11:59
Date: Tue, 24 Nov 2026 11:59
56 lines
4021 bytes
4021 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072
--- Comment #13 from laamalif@proton.me ---
You are right that it is the test race: I read proc_to_reap()
again and the guard rejects the untraced PD_NOWAITPID child, so
waitpid() cannot see it before PT_TRACE_ME. Not a wait4() issue;
scrapping that theory.
Fix for the D61975 tests: traceme_and_stop() writes one byte to a
pipe after ptrace(PT_TRACE_ME) returns; the parent reads that byte
before its first waitpid(). reaper_child_close_traced and
reaper_child_close_traced_exit each need the ready pipe; test 1
already had an equivalent byte.
Ran the tests against a GENERIC-KASAN kernel built from main plus
your D61975 kernel change (build of 2026-11-24, #4
main-6edecf52def6-dirty): all three pass, and the two traced tests
pass three consecutive times each.
reaper_child_close: passed
reaper_child_close_traced: passed, 3/3
reaper_child_close_traced_exit: passed, 3/3
Inline diff of the test changes:
--- tests/sys/kern/procdesc.c
+++ tests/sys/kern/procdesc.c
@@ -950,17 +950,21 @@ reaper_child_close(ATF_TC_ARGS_PROTO(tc))
static void
traceme_and_stop(int fd)
{
+ int readyfd = tc_fd; /* see below */
close(fd);
if (ptrace(PT_TRACE_ME, 0, NULL, 0) != 0)
_exit(1);
+ if (write(readyfd, &c, 1) != 1)
+ _exit(2);
raise(SIGSTOP);
for (;;)
pause();
_exit(0);
}
(Attached as the full revised test file; the inline sketch abbreviates
the plumbing: traceme_and_stop() takes the ready pipe end as a second
argument, each traced test creates the pipe before pdfork, and the
parent reads one byte from it before the first waitpid.)
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 11:59
Date: Tue, 24 Nov 2026 11:59
16 lines
2496 bytes
2496 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #14 from laamalif@proton.me --- Created attachment 277646 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277646&action=edit d61975-test-fix.txt -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Tue, 24 Nov 2026 12:00
Date: Tue, 24 Nov 2026 12:00
26 lines
3075 bytes
3075 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #15 from laamalif@proton.me --- Two corrections to my last comment: First, my opening sentence restated the wrong mechanism. Your explanation is that the untraced PD_NOWAITPID child is invisible to the debugger's waitpid(2) by design; there is nothing in proc_to_reap() to re-read. The test fix follows from that. Second, the inline diff sketch in that comment is not accurate (the variable it shows does not exist). The attachment d61975-test-fix.txt is the real change: traceme_and_stop(int fd, int readyfd) writes one byte to readyfd after PT_TRACE_ME returns; reaper_child_close_traced and reaper_child_close_traced_exit create the ready pipe before pdfork and read one byte from it before the first waitpid. -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Wed, 25 Nov 2026 09:50
Date: Wed, 25 Nov 2026 09:50
41 lines
3374 bytes
3374 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072
--- Comment #16 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=24ebe1ef7e264b7e000383aed30826bd184174b2
commit 24ebe1ef7e264b7e000383aed30826bd184174b2
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-11-24 08:47:53 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-11-25 09:49:59 +0000
tests/sys/kern/procdesc: test the reaper's own PD_NOWAITPID child
Check that the reaper can waitpid(2) for its PD_NOWAITPID child after
closing the last process descriptor, untraced, detached, or with the
tracing reaper exiting.
Based on reproducers provided by Laam Alif <laamalif@proton.me>.
PR: 301072
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D61975
tests/sys/kern/procdesc.c | 177 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 177 insertions(+)
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Wed, 25 Nov 2026 09:50
Date: Wed, 25 Nov 2026 09:50
40 lines
3481 bytes
3481 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072
--- Comment #17 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=a16f0b2e5c6a9ea396147e6a832d8d999e85a95a
commit a16f0b2e5c6a9ea396147e6a832d8d999e85a95a
Author: Laam Alif <laamalif@proton.me>
AuthorDate: 2026-11-24 08:11:56 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-11-25 09:49:59 +0000
procdesc_close(): grant waitpid(2) when the reaper is already the parent
When the process is already a child of its reaper, proc_reparent()
returns early and does not re-enable waitpid(2), so after the last
process descriptor was closed nobody could reap the zombie. If the
reaper was also tracing the process, it was additionally linked onto
the reaper's own orphan list, and after PT_DETACH it stayed there
untraced, again without a waitpid(2) reference.
PR: 301072
Reviewed by: kib, markj
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D61975
sys/kern/sys_procdesc.c | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...
Author: bugzilla-noreply
Date: Fri, 27 Nov 2026 01:08
Date: Fri, 27 Nov 2026 01:08
28 lines
3193 bytes
3193 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 --- Comment #18 from Janeri Filho, Osvaldo <Osvaldo.JaneriFilho@amd.com> --- Reproduced on an amd64 INVARIANTS kernel built from main 5c5fae7874a9 with a16f0b2e5c6a reverted, running the procdesc tests from the same tree in a bhyve guest: reaper_child_close_traced: panic: proc 946 0x... orphaned but parent 945 0x... is realparent proc_realparent() <- killjobc() <- exit1() <- kern_exit() <- sigexit() reaper_child_close_traced_exit panics the same way from the helper's _exit(), and reaper_child_close fails with ECHILD from waitpid(). With a16f0b2e5c6a, all 22 procdesc cases pass. We first hit this on bare metal, running the new tests on a kernel that predates the fix. stable/15 still has the old procdesc_close() and the assertion from 8cef3c9b768, so the tests from 24ebe1ef7e26 will panic INVARIANTS kernels there until a16f0b2e5c6a is merged. -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads