HomeFreeBSD

pf: Avoid leaking pad bytes in struct pfr_astats when copying out

Description

pf: Avoid leaking pad bytes in struct pfr_astats when copying out

There is padding between pfr_astats.pfras_a and pfras_packets that was
not getting initialized.

Reported by: KMSAN
Reviewed by: kp, imp
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D30585

Details

Provenance
markjAuthored on Jun 1 2021, 2:56 PM
Reviewer
kp
Differential Revision
D30585: pf: Avoid leaking pad bytes in struct pfr_astats when copying out
Parents
rGcbe59a6475b6: i386: Make setidt_disp a size_t instead of uintptr_t
Branches
Unknown
Tags
Unknown