[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

[email protected]
Newsgroups gmane.os.freebsd.bugs
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297512

--- Comment #5 from [email protected] ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=1a71d24ecd0dbaf61fd2a44166e9be07c328b198

commit 1a71d24ecd0dbaf61fd2a44166e9be07c328b198
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-08-14 05:46:07 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-08-14 14:35:38 +0000

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

    In particular, if there were any bytes moved, and then vm_fault()
    faulted, do not return an error, but report the short io instead.

    PR:     297512
    Reviewed by:    markj
    Tested by:      Stéphane D'Alu <[email protected]>
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D58838

 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.