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
F96914266: D35659.diff
Fri, Sep 27, 4:24 AM
Unknown Object (File)
Thu, Sep 26, 5:59 PM
Unknown Object (File)
Mon, Sep 23, 3:22 AM
Unknown Object (File)
Sun, Sep 22, 6:44 PM
Unknown Object (File)
Sun, Sep 22, 4:49 PM
Unknown Object (File)
Wed, Sep 18, 6:59 PM
Unknown Object (File)
Wed, Sep 18, 9:32 AM
Unknown Object (File)
Wed, Sep 18, 3:57 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable