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)
Mon, Oct 5, 6:15 AM
Unknown Object (File)
Sun, Oct 4, 1:35 AM
Unknown Object (File)
Tue, Sep 29, 8:56 PM
Unknown Object (File)
Sun, Sep 27, 5:03 AM
Unknown Object (File)
Sun, Sep 20, 2:31 AM
Unknown Object (File)
Thu, Sep 10, 12:15 PM
Unknown Object (File)
Sep 5 2026, 7:51 PM
Unknown Object (File)
Sep 5 2026, 7:51 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable