]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r340674:
authortijl <tijl@FreeBSD.org>
Thu, 22 Nov 2018 09:47:51 +0000 (09:47 +0000)
committertijl <tijl@FreeBSD.org>
Thu, 22 Nov 2018 09:47:51 +0000 (09:47 +0000)
commit1162e5190b51c01b6386baec10dbcd0ddcaf4b38
tree2d3b43f312dd23b5b42311fecbae674b2c9cebba
parenta7710016b5015643786ff0ceb070cae982e80ddb
MFC r340674:

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
sys/compat/linux/linux_socket.c