https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297512

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

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

commit f6000e9dd934db9fefc31eaa07a7d8fa9277484e
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-08-14 05:23:22 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-08-14 14:35:38 +0000

    kern/kern_proc.c: do not throw out read data in get_ps_strings()

    Since vmspace_iop()/proc_readmem() might return -1 on error from
    vmspace_rwmem(), account for this and stop reading but return already
    accumulated data if any, instead of returning an error.

    PR:     297512
    Reported and tested by: Stéphane D'Alu <[email protected]>
    Reviewed by:    markj
    Fixes:  e1b0d051bbf7 ("proc: Allow to make proc_rwmem() operate on a
consistent address space")
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D58838

 sys/kern/kern_proc.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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

Reply via email to