HomeFreeBSD

Initialize reserved bytes in struct mq_attr and its 32compat

Description

Initialize reserved bytes in struct mq_attr and its 32compat
counterpart, to avoid kernel stack content leak in kmq_setattr(2)
syscall. Also slightly simplify the checks around copyout()s.

Reported by: Vlad Tsyrklevich <vlad902+spam@gmail.com>
PR: 214488
MFC after: 1 week

Details

Provenance
kibAuthored on
Parents
rS308641: Move text dump version as it's not an architecture version.
Branches
Unknown
Tags
Unknown