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
F93152330: D46050.diff
Sat, Sep 7, 4:47 PM
Unknown Object (File)
Sun, Sep 1, 1:34 PM
Unknown Object (File)
Sat, Aug 31, 1:00 PM
Unknown Object (File)
Fri, Aug 23, 8:36 PM
Unknown Object (File)
Jul 30 2024, 1:19 PM
Unknown Object (File)
Jul 26 2024, 6:51 AM
Unknown Object (File)
Jul 25 2024, 5:48 PM
Unknown Object (File)
Jul 24 2024, 3:12 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