]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFS r340755:
authortijl <tijl@FreeBSD.org>
Thu, 22 Nov 2018 13:09:42 +0000 (13:09 +0000)
committertijl <tijl@FreeBSD.org>
Thu, 22 Nov 2018 13:09:42 +0000 (13:09 +0000)
commit657b961c3e69847891b3b3c477f4b02cb7397c28
tree96abcb78e46e223fba74776be2eb02cb98dcf266
parent50b158c85079a59f66166a7c2f284007e479dabd
MFS r340755:

Do proper copyin of control message data in the Linux sendmsg syscall.

Instead of calling m_append with a user address, allocate an mbuf cluster
and copy data into it using copyin.  For the SCM_CREDS case, instead of
zeroing a stack variable and appending that to the mbuf, zero part of the
mbuf cluster directly.  One mbuf cluster is also the size limit used by
the FreeBSD sendmsg syscall (uipc_syscalls.c:sockargs()).

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