HomeFreeBSD

pf: Make sure that pfi_update_status() always zeros counters

Description

pf: Make sure that pfi_update_status() always zeros counters

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)
Reviewed by: kp
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 333670372ffe2f1c562e1088a7779eb709006ba2)

Details

Provenance
markjAuthored on Jun 30 2022, 2:19 PM
Parents
rG5687381276d4: pf: Ensure that pfiio_name is always nul terminated
Branches
Unknown
Tags
Unknown