Page MenuHomeFreeBSD

pf: Make sure that pfi_update_status() always zeros counters
ClosedPublic

Authored by markj on Jun 29 2022, 3:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 26, 12:48 PM
Unknown Object (File)
Fri, Apr 25, 12:35 AM
Unknown Object (File)
Sat, Apr 19, 6:02 AM
Unknown Object (File)
Mar 23 2025, 11:59 PM
Unknown Object (File)
Feb 10 2025, 3:04 AM
Unknown Object (File)
Feb 4 2025, 10:30 PM
Unknown Object (File)
Feb 4 2025, 4:29 AM
Unknown Object (File)
Feb 2 2025, 9:38 PM

Details

Summary

pfi_update_status() can return early if the status interface doesn't
exist. But in this case pf_getstatus() was copying uninitialized stack
memory into the output nvlist.

Reported by: Jenkins (KMSAN job)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46181
Build 43070: arc lint + arc unit