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)
Mon, Apr 20, 2:41 PM
Unknown Object (File)
Sun, Apr 19, 7:49 AM
Unknown Object (File)
Wed, Apr 15, 5:51 PM
Unknown Object (File)
Wed, Apr 15, 5:40 PM
Unknown Object (File)
Fri, Apr 10, 3:23 PM
Unknown Object (File)
Wed, Apr 8, 7:17 PM
Unknown Object (File)
Sat, Apr 4, 1:39 PM
Unknown Object (File)
Fri, Apr 3, 11:19 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