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)
Sun, Jan 12, 9:42 PM
Unknown Object (File)
Fri, Jan 10, 9:27 AM
Unknown Object (File)
Nov 30 2024, 6:04 AM
Unknown Object (File)
Nov 27 2024, 1:21 AM
Unknown Object (File)
Nov 13 2024, 8:45 PM
Unknown Object (File)
Nov 12 2024, 2:07 AM
Unknown Object (File)
Nov 1 2024, 11:15 PM
Unknown Object (File)
Nov 1 2024, 11:14 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