HomeFreeBSD

Fix another user address dereference in linux_sendmsg syscall.

Description

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
MFC after: 2 days
X-MFC-With: r340631

Details

Provenance
tijlAuthored on
Parents
rS340673: Unbreak build after r340670. This is direct commit to stable/11.
Branches
Unknown
Tags
Unknown