[Bug 297512] kern.proc.env sysctl fails with ENOMEM when last env string is near the end of the stack mapping; breaks ConsoleKit2 session lookup and GNOME screen unlock

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 16 Aug 2026 02:48:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297512

--- Comment #7 from commit-hook@FreeBSD.org ---
A commit in branch stable/15 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=75bf78a0ed8d3e108532c8893f5dad8bdb2b0b3e

commit 75bf78a0ed8d3e108532c8893f5dad8bdb2b0b3e
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-08-14 05:46:07 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-08-16 02:41:19 +0000

    kern/sys_process.c: make vmspace_rwmem() similar to io functions

    PR:     297512

    (cherry picked from commit 1a71d24ecd0dbaf61fd2a44166e9be07c328b198)

 sys/kern/sys_process.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.