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
F115163237: D49436.id152889.diff
Mon, Apr 21, 1:29 AM
F115129512: D49436.id152549.diff
Sun, Apr 20, 6:08 PM
Unknown Object (File)
Fri, Apr 18, 11:23 PM
Unknown Object (File)
Thu, Apr 17, 2:47 AM
Unknown Object (File)
Mon, Apr 14, 12:44 PM
Unknown Object (File)
Sun, Apr 6, 12:39 PM
Unknown Object (File)
Sun, Apr 6, 12:38 PM
Unknown Object (File)
Fri, Apr 4, 9:26 PM
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 Not Applicable
Unit
Tests Not Applicable

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.Mon, Mar 24, 6:34 AM