Page MenuHomeFreeBSD

socket: Check for a NULL ctloutput handler in the SO_SETFIB handler
ClosedPublic

Authored by markj on Mar 21 2025, 2:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 6, 12:32 PM
Unknown Object (File)
Tue, Aug 4, 9:27 AM
Unknown Object (File)
Mon, Aug 3, 3:21 AM
Unknown Object (File)
Mon, Aug 3, 2:42 AM
Unknown Object (File)
Sun, Aug 2, 6:16 AM
Unknown Object (File)
Thu, Jul 30, 12:18 AM
Unknown Object (File)
Sat, Jul 25, 4:12 PM
Unknown Object (File)
Sat, Jul 25, 5:50 AM
Subscribers

Details

Summary

Some protocols, e.g., ng_btsocket_l2cap_raw_protosw, do not have one.

Reported by: syzkaller
Fixes: caccbaef8e26 ("socket: Move SO_SETFIB handling to protocol layers")
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63062
Build 59946: arc lint + arc unit

Event Timeline

markj requested review of this revision.Mar 21 2025, 2:08 PM

I would do it differently. In uipc_domain.c add pr_ctloutput_notsupp() and add it with NOTSUPP() macro to pr_init() in the same file.

This revision is now accepted and ready to land.Mar 24 2025, 6:34 AM