Page MenuHomeFreeBSD

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

Authored by glebius on May 25 2022, 7:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 29 2026, 1:09 PM
Unknown Object (File)
Apr 29 2026, 1:05 PM
Unknown Object (File)
Apr 29 2026, 7:38 AM
Unknown Object (File)
Apr 27 2026, 11:20 AM
Unknown Object (File)
Apr 18 2026, 1:22 PM
Unknown Object (File)
Apr 18 2026, 8:21 AM
Unknown Object (File)
Apr 17 2026, 9:55 PM
Unknown Object (File)
Apr 16 2026, 10:49 PM
Subscribers

Details

Summary

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().

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45705
Build 42593: arc lint + arc unit

Event Timeline

markj added inline comments.
sys/kern/uipc_usrreq.c
2244
2249

I'm not sure this is truly insane. libcasper can provoke such situations.

This revision is now accepted and ready to land.May 25 2022, 7:43 PM