]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFS r340757:
authortijl <tijl@FreeBSD.org>
Thu, 22 Nov 2018 13:12:17 +0000 (13:12 +0000)
committertijl <tijl@FreeBSD.org>
Thu, 22 Nov 2018 13:12:17 +0000 (13:12 +0000)
commit7635e8c15bcbdd44bd1ea364f928b29f6244c595
tree0b8495e0209157934a972ac27123f16b8cb6e7d3
parent657b961c3e69847891b3b3c477f4b02cb7397c28
MFS r340757:

Fix another user address dereference in linux_sendmsg syscall.

This was hidden behind the LINUX_CMSG_NXTHDR macro which dereferences its
second argument.  Stop using the macro as well as LINUX_CMSG_FIRSTHDR.  Use
the size field of the kernel copy of the control message header to obtain
the next control message.

PR: 217901
Approved by: re (marius)
sys/compat/linux/linux_socket.c