🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #742

[Bug 301072] procdesc: procdesc_close() links a traced child onto its own reaper's orphan list, panicking the kernel at child ex...

#742
From: bugzilla-noreply
Date: Wed, 25 Nov 2026 09:50
40 lines
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
Technical Details
Message-ID: <bug-301072-227-lMcMc2M7mW@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <bug-301072-227@https.bugs.freebsd.org/bugzilla/>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 301072] procdesc: procdesc_close() links a traced child onto
 its own reaper's orphan list, panicking the kernel at child exit
Date: Wed, 25 Nov 2026 09:50:41 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-301072-227-lMcMc2M7mW@https.bugs.freebsd.org/bugzilla/>
References: <bug-301072-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="67287"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795600242;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=x8T8pPAyD0cAzfvXXQgRoMnxAh3ro745RRpAZSTwc/A=;
	b=I2GmERoBA4PyXfd2DRebxz4HAtsHn/3xTKTx54GlIr/5+FagGdiYyJnb6rts9K1sA6TSax
	tDGClmBGWcm5cIY9yba4bhAE3h1upTrpFZKHdWyFRSGohqmuKVhlRTqO+wgqFo8J2fDuyU
	GQRZ1V9P6xwDEvoBdUawbw7wA9A63p5eQxoTExCk2r8cogqoIdK3V/2FoL/NCaG6UvQwaO
	uvKAwlHaouAvSI5lQmBdV5KlwHSN2vuDlLWZq/7X+ovOMphBavmtgBzWDGonFtK47eI6U3
	7exXcFXtN5IdZcR3140ZVttGq6BIJpU/+oQG8YO5bowOy/lINGpEaHO7eDG7sQ==
X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f
In-Reply-To: <bug-301072-227@https.bugs.freebsd.org/bugzilla/>
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes