/[base]
ViewVC logotype

Revision 346019


Jump to revision: Previous Next
Author: jah
Date: Sun Apr 7 19:02:33 2019 UTC (5 years, 3 months ago)
Changed paths: 2
Log Message:
MFC r345741:

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


Changed paths

Path Details
Directorystable/12/ modified , props changed
Directorystable/12/sys/compat/freebsd32/freebsd32_misc.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27