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)
Thu, Jan 9, 9:57 AM
Unknown Object (File)
Sat, Jan 4, 9:34 AM
Unknown Object (File)
Nov 24 2024, 5:05 AM
Unknown Object (File)
Nov 22 2024, 8:14 PM
Unknown Object (File)
Oct 19 2024, 4:25 PM
Unknown Object (File)
Oct 19 2024, 4:25 PM
Unknown Object (File)
Oct 19 2024, 4:25 PM
Unknown Object (File)
Oct 19 2024, 4:05 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 Skipped
Unit
Tests Skipped