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
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35659

Details

Provenance
markjAuthored on Jun 30 2022, 2:19 PM
Reviewer
kp
Differential Revision
D35659: pf: Make sure that pfi_update_status() always zeros counters
Parents
rGbc83b3592241: pf: Ensure that pfiio_name is always nul terminated
Branches
Unknown
Tags
Unknown