From nobody Wed Apr 22 00:44:36 2026 X-Original-To: bugs@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 4g0gTx3LR6z6b0cr for ; Wed, 22 Apr 2026 00:44:37 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g0gTx1wfSz3kBy for ; Wed, 22 Apr 2026 00:44:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776818677; 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=ellkn0tafk6QIiqtQE431FH5s4b17QCbg/TwDPEUCvo=; b=J81ViPelvxhtSn08Ap6SnYXTEq0o1TQkFF487Ahvu/VIHuJt7TOndmIZA9FZ/BoJSWk6Wv m+pcV9ruNgEVIV8jklVY4uyQT4seXybMk3fa8OrSnV90khvI4D/ttuGXUWVNNWmktVpz1A lrLibwJJcQDTpSFSY5bIg3+feUpziM8LsOe3Z2VNenoO+ztqOqLKGEbrkq15rH75+ocqWE VRsBYiZlRsRuYTy0sUTwwGd9A7zRKREmD3JayG56B4orsrPZTaruhwaMazWVpu6YNdKBGQ Dcu4QZltgPhJVktGoMV2pScDgokEsZmf+5IIQ5g0ho4Kjn/ZMnipXgCEuVs7DA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776818677; a=rsa-sha256; cv=none; b=bzwKUInons2CvAjBIGqPVjhPG9LcpLHCISVD8SKPOJXNNewQXD9+r2ZISeu7XWvj+i2Go6 PUuRKbqOWfbjEsw/uPHWd818NMO6lL/V0vSyH7JSvb0mfXOBX6saUUX8euicZz5J4Y/e1G W4aE/nxwB8pM7VtxRj2H8K3aAYjakegVLPXjvF5EDxtl+1p/HzVaPGYENheNTDOMtQqCe9 eXRUIiophw5Anmd6IyKKvIs2A2ag4xVOREOULxGRbdwHX3NMUvZvwjDg8wqMnAaM/xXjKW j82SNbw48sLzekuWzJBrfsw92NThfNeuDlkDGeH7XqeRy+du6r11Q7IM96ayzw== 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=1776818677; 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=ellkn0tafk6QIiqtQE431FH5s4b17QCbg/TwDPEUCvo=; b=DOL1l3NMolnpWZOaSxZzVmJEaVBnctysZcJY27qbj80o6k4UlA5uDif26DkwJ1ROrUZNlW oHXhBWP9yEZiW72FINx0hljOGnbeEdox1p11ICX1/WXoEqlInkkjs23UcQFxKZqvAAtRBz +lIZnkamoyRSBbdwby6Sqr9cM/nKi0EB+3G10VDwiuPt+LqgyOIOPg4yblmLGcHd/N3tmO TwthhPTK22zkIsqJqQDeZL18IkwsuvIuUUNVaD269uT8gKnoEJ0py/ctafDps9+51i2gwv sBhJaVjQcN6nahu+yCCg8W2+H2XhTuLBjjuA+F8kizOhoTeEaazvM2QiozbdKg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4g0gTx1R83z1790 for ; Wed, 22 Apr 2026 00:44:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 63M0iblN007030 for ; Wed, 22 Apr 2026 00:44:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 63M0ibL8007029 for bugs@FreeBSD.org; Wed, 22 Apr 2026 00:44:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 293871] kern/proc: expose reaper PID and subtree root in struct kinfo_proc Date: Wed, 22 Apr 2026 00:44:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 16.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293871 --- Comment #10 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D0f89380a3d208d67698f2d35afd35257e= 5fdbe09 commit 0f89380a3d208d67698f2d35afd35257e5fdbe09 Author: GenericRikka AuthorDate: 2026-04-20 23:32:49 +0000 Commit: Konstantin Belousov CommitDate: 2026-04-21 23:36:07 +0000 kern/proc: expose reaper PID and subtree root in struct kinfo_proc Expose process reaper metadata through struct kinfo_proc so userland can reconstruct reaper hierarchies from kern.proc.all without adding a new procctl(2) operation. Two pid_t fields are added by carving 8 bytes from ki_sparestrings (46 -> 38), restoring KI_NSPARE_INT to 2 and keeping sizeof(struct kinfo_proc) unchanged: ki_reaper: PID of the owning reaper process ki_reapsubtree: PID of the direct child of the reaper that roots the subtree the process belongs to fill_kinfo_proc_pgrp() populates both fields under proctree_lock. kvm_proclist() is updated for crash dump consumers. The freebsd32 compat struct and freebsd32_kinfo_proc_out() are updated accordingly. PR: 293871 Reviewed by: kib MFC after: 1 week Differential revision: https://reviews.freebsd.org/D56538 lib/libkvm/kvm_proc.c | 8 ++++++++ sys/compat/freebsd32/freebsd32.h | 4 +++- sys/kern/kern_proc.c | 4 ++++ sys/sys/user.h | 4 +++- 4 files changed, 18 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=