From nobody Tue Jul 28 19:47:00 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4h8mFQ5xsTz6nCNC for ; Tue, 28 Jul 2026 19:47:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h8mFQ39r5z48T4 for ; Tue, 28 Jul 2026 19:47:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785268026; 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; bh=Z4ex/d83RkO0DcUHnu5+vsK6JmFg4Enq3BpoYIzut0c=; b=TrVH9mLrg06Oe2GATqt8JJTv0y69KTXBu9YCtqBfiPU4itIH/qJ4XdTwileQYXSdlp++tr mcEhtv+W1cG15WRzvdpjaOLptD22bI6rjhBOaiKrwuglfPnD00SG/Bky0yDu3WDjN3TiYM PRNrCNw+nrPeObaz3PQsHIhU+NjJNWbZvaFFi3Hscbk6/FSPj282q8XjKRK19ntv2/kHvV Ee8r3WvNmM/g3pplswO8EKvU8NOBk35lqRHwQDo6Vi+WwJQAcvqf7djDAPlc3p2uIyZM3I 26e1Y8jdW6zrXbjIIcA3U1Ra9Egl3o3YihD40rOb7e6AayEtPXiWXQ8LiOW6Gg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785268026; a=rsa-sha256; cv=none; b=LO+HsoTDTUZayufigskaX3i36AshTu6xjLgzqpcp1WTots4ArirJ72DDY/eDh3EqB2px87 wq1G/nXnu5uqCGJ98oZ3l2JFlQiq7RXQivptiDdHYQZBCmhaHqdf2huKhzfa1Bd5sHjQys Ymavr7f8IhqGgWe6eSvzQqBz99PJTVjHAjYRWD7HuV7Wn9597EKJPYHk4wtiyUfdJTlNla EUTw+neBlVujtgdpMfNq00YEL4GTsGVlpmV1Ex2Iyj/uWplFkmaIXgavKNdEHtTfYjc+uD qoUB4HuLa6cynvqf6pl5ilLoArvljYngKizXTyMCqkVXAm7dyOBkvsR1hp2B+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785268026; 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; bh=Z4ex/d83RkO0DcUHnu5+vsK6JmFg4Enq3BpoYIzut0c=; b=spehJ/J/030qr7r4q9RCXfAVxzsa9Df9iifBThRgvfcf2+EsjEnPmCwTQW/FBskh6z1nSK fAw3i/9f+Pq59GRMiWPeJypPJoLyajEnw2MttAvzIWyaGUyTOv/c0OUkpwcj5tKsOY5Y6m f/Ik3UpaSM1y0MgYYdHqQEfciSKcORZbDxg2Wj++qDBONQ8gS9E8cJEfafC06ZPnPdtqve UrCQgyoDjhPYINYFUBYttWN8yBptjAoj/m7HOVZXCKf0tCHbri0mzYwxH74AA4FHe8XQ9a hWKcCW5MXIIrguGbAXj1c6sLGdQeuBHRfg/vol7XDqcCpUVFL+wBzn2IMYgvdw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h8mFQ1dVGztfg for ; Tue, 28 Jul 2026 19:47:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 456aa by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 28 Jul 2026 19:47:00 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 8cef3c9b768a - main - proc_realparent(): assert that an orphaned child has real parent != parent List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8cef3c9b768a4a6d63a7754f6a46315532687305 Auto-Submitted: auto-generated Date: Tue, 28 Jul 2026 19:47:00 +0000 Message-Id: <6a690734.456aa.344d7b5a@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=8cef3c9b768a4a6d63a7754f6a46315532687305 commit 8cef3c9b768a4a6d63a7754f6a46315532687305 Author: Konstantin Belousov AuthorDate: 2026-07-21 19:54:14 +0000 Commit: Konstantin Belousov CommitDate: 2026-07-28 19:45:47 +0000 proc_realparent(): assert that an orphaned child has real parent != parent Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D58504 --- sys/kern/kern_exit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 2aa756bd00d2..c43bd69554e7 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -124,6 +124,9 @@ proc_realparent(struct proc *child) } parent = __containerof(p->p_orphan.le_prev, struct proc, p_orphans.lh_first); + KASSERT(child->p_pptr != parent, + ("proc %d %p orphaned but parent %d %p is realparent", + child->p_pid, child, parent->p_pid, parent)); return (parent); }