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 Nov 14 2016, 1:20 PM
Parents
rG876fe7b1bdd0: Move text dump version as it's not an architecture version.
Branches
Unknown
Tags
Unknown

Event Timeline