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)
Sun, Jun 21, 10:05 PM
Unknown Object (File)
Thu, Jun 18, 3:26 PM
Unknown Object (File)
May 15 2026, 5:09 PM
Unknown Object (File)
May 15 2026, 5:08 PM
Unknown Object (File)
May 15 2026, 5:08 PM
Unknown Object (File)
May 15 2026, 4:56 PM
Unknown Object (File)
May 6 2026, 1:53 AM
Unknown Object (File)
Apr 30 2026, 6:39 PM
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