HomeFreeBSD

linux(4): Fix control message size calculation again

Description

linux(4): Fix control message size calculation again

It looks Linux recvmsg allows msg_controllen size less then CMSG_SPACE
buffer, at least for case with one cmsghdr. Glibc misc/tst-scm_rights
test succed on Ubuntu 23.04

Fixes: 67116c69 "linux(4): Fix control message size calculation"
MFC after: 1 week

(cherry picked from commit 7d561928e65af6fe90ff9e316b2d50668c53b464)

Details

Provenance
dchaginAuthored on Aug 14 2023, 12:46 PM
Parents
rG9a92ce22df7c: pci: return 0 for pci_remap_intr_method MSI-X non-error case
Branches
Unknown
Tags
Unknown