Jason A. Harmening f0645b3a06 freebsd32: fix padding of computed control message length for recvmsg()
Each control message region must be aligned on a 4-byte boundary on 32-bit
architectures. The 32-bit compat shim for recvmsg() gets the actual layout
right, but doesn't pad the payload length when computing msg_controllen for
the output message header. If a control message contains an unaligned
payload, such as the 1-byte TTL field in the example attached to PR 236737,
this can produce control message payload boundaries that extend beyond
the boundary reported by msg_controllen.

PR:	236737
Reported by:	Yuval Pavel Zholkover <paulzhol@gmail.com>
Reviewed by:	markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D19768
2019-03-30 23:43:58 +00:00
..
2019-03-29 20:21:28 +00:00
2019-03-29 19:40:04 +00:00
2019-03-29 20:21:28 +00:00
2019-03-29 20:21:28 +00:00
2019-03-29 20:21:28 +00:00
2019-03-30 16:58:51 +00:00
2019-02-21 01:30:37 +00:00
2019-03-25 07:48:52 +00:00
2019-03-28 08:59:11 +00:00
2019-03-27 16:26:03 +00:00
2019-02-04 21:28:25 +00:00