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 Nov 20 2018, 2:18 PM
Parents
rG0a05369d451d: ports(7): Do not mention deprecated WITH_OPENSSL_PORT.
Branches
Unknown
Tags
Unknown

Event Timeline