Date: Wed, 22 Apr 2026 00:44:36 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 293871] kern/proc: expose reaper PID and subtree root in struct kinfo_proc Message-ID: <bug-293871-227-z2gauQodxv@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-293871-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293871 --- Comment #10 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=0f89380a3d208d67698f2d35afd35257e5fdbe09 commit 0f89380a3d208d67698f2d35afd35257e5fdbe09 Author: GenericRikka <rikka.goering@outlook.de> AuthorDate: 2026-04-20 23:32:49 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> 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(-) -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-293871-227-z2gauQodxv>
