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, Sep 13, 2:55 PM
Unknown Object (File)
Thu, Sep 10, 10:22 PM
Unknown Object (File)
Sun, Sep 6, 9:09 AM
Unknown Object (File)
Sat, Sep 5, 9:04 PM
Unknown Object (File)
Sat, Sep 5, 10:05 AM
Unknown Object (File)
Sat, Sep 5, 9:30 AM
Unknown Object (File)
Sat, Sep 5, 7:58 AM
Unknown Object (File)
Sat, Sep 5, 2:27 AM
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