[Bug 260174] libprocstat's i386 procstat_getfiles() fails on amd64

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 02 Dec 2021 22:53:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260174

--- Comment #2 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

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

commit 7a9423d6f360e3758ca67fbb25d309140ea93670
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-12-02 18:03:01 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-02 22:52:49 +0000

    procstat_getfiles_sysctl: do not require non-null ki_fd

    ki_fd is legitimately NULL when 32bit process requests process data
    from 64bit host kernel.  The field is not used by the code for sysctl
    case;  procstat_getfiles_kvm() checks ki_fd.

    PR:     260174
    Reported by:    Damjan Jovanovic <damjan.jov@gmail.com>
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week

 lib/libprocstat/libprocstat.c | 2 --
 1 file changed, 2 deletions(-)

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