HomeFreeBSD

unix/*: check new control size in unp_internalize()

Description

unix/*: check new control size in unp_internalize()

Now that we call sbcreatecontrol() with M_WAITOK, we are expected to
pass a valid size. Return same error code, we are returning for an
oversized control from sockargs().

Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D35317

Details

Provenance
glebiusAuthored on May 25 2022, 8:29 PM
Reviewer
markj
Differential Revision
D35317: unix/*: check new control size in unp_internalize()
Parents
rGd60ea9a10a79: sockets: return EMSGSIZE if control part of message is too large
Branches
Unknown
Tags
Unknown