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, Feb 9, 10:06 AM
Unknown Object (File)
Sat, Feb 7, 10:23 PM
Unknown Object (File)
Sun, Feb 1, 9:32 AM
Unknown Object (File)
Sun, Feb 1, 9:03 AM
Unknown Object (File)
Sun, Feb 1, 8:13 AM
Unknown Object (File)
Fri, Jan 30, 4:04 PM
Unknown Object (File)
Wed, Jan 14, 12:56 PM
Unknown Object (File)
Dec 18 2025, 6:41 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