Page MenuHomeFreeBSD

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

Authored by markj on May 31 2021, 6:50 PM.
Tags
None
Referenced Files
F137207708: D30585.id90198.diff
Fri, Nov 21, 12:45 PM
F137207557: D30585.id90215.diff
Fri, Nov 21, 12:44 PM
F137207240: D30585.id90291.diff
Fri, Nov 21, 12:42 PM
F137206892: D30585.id.diff
Fri, Nov 21, 12:39 PM
F137205946: D30585.diff
Fri, Nov 21, 12:31 PM
Unknown Object (File)
Thu, Nov 20, 12:47 AM
Unknown Object (File)
Sat, Nov 15, 12:19 PM
Unknown Object (File)
Sun, Nov 2, 10:58 PM

Details

Summary

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

Reported by: KMSAN

Test Plan

pf regression tests

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39612
Build 36501: arc lint + arc unit

Event Timeline

markj requested review of this revision.May 31 2021, 6:50 PM
markj added a reviewer: kp.
This revision is now accepted and ready to land.May 31 2021, 6:51 PM

Zero the correct pointer.

This revision now requires review to proceed.May 31 2021, 8:56 PM
This revision is now accepted and ready to land.Jun 1 2021, 7:12 AM
In D30585#686909, @kp wrote:

MFC after: ?

Will MFC after 1 week. (I'm not in the habit of including that in review descriptions, but I should start...)