Page MenuHomeFreeBSD

sockstat(1): tolerate situation where file info cannot be fetched
ClosedPublic

Authored by kib on Jul 20 2024, 12:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 6:17 AM
Unknown Object (File)
Sun, Sep 21, 9:45 PM
Unknown Object (File)
Sep 16 2025, 11:57 AM
Unknown Object (File)
Sep 13 2025, 8:30 PM
Unknown Object (File)
Sep 13 2025, 12:17 AM
Unknown Object (File)
Sep 11 2025, 6:19 AM
Unknown Object (File)
Sep 6 2025, 6:39 AM
Unknown Object (File)
Jul 8 2025, 2:56 AM
Subscribers

Details

Summary
Either due to a race, or to the privilege restrictions, it is not
guaranteed that kern.files returned file information for all pcbs
read from net.inet.<proto>.pcblist.  In this case the file rbtree does
not return the matching file by data address, and code must avoid
dereferencing NULL.

PR:     279875

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable