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
F151906752: D35659.diff
Sat, Apr 11, 11:39 AM
Unknown Object (File)
Mon, Apr 6, 2:26 PM
Unknown Object (File)
Sun, Apr 5, 1:10 PM
Unknown Object (File)
Sat, Mar 28, 11:17 AM
Unknown Object (File)
Fri, Mar 27, 2:41 PM
Unknown Object (File)
Wed, Mar 18, 10:32 PM
Unknown Object (File)
Wed, Mar 18, 1:39 PM
Unknown Object (File)
Sun, Mar 15, 5:33 AM

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