HomeFreeBSD

swap_pager: Zero swap info before exporting to userspace

Description

swap_pager: Zero swap info before exporting to userspace

Otherwise padding bytes are leaked.

Reported by: KMSAN
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 06d1fd9f42fa9c060fad8f3a71fcaada3baaf200)

Details

Provenance
markjAuthored on May 12 2021, 1:42 PM
Parents
rG178633e28291: if: Remove unnecessary validation in the SIOCSIFNAME handler
Branches
Unknown
Tags
Unknown