HomeFreeBSD

MFC r362941:

Description

MFC r362941:

Fix Linux recvmsg(2) when msg_namelen returned is 0. Previously
it would fail with EINVAL, breaking some of the Python regression
tests.

While here, cap the user-controlled message length.

Note that the code doesn't seem to be copying out the new length
in either (success or failure) case. This will be addressed separately.

Sponsored by: The FreeBSD Foundation

Details

Provenance
traszAuthored on
Parents
rS364706: MFC r362833:
Branches
Unknown
Tags
Unknown