Page MenuHomeFreeBSD

socket: Check for a NULL ctloutput handler in the SO_SETFIB handler
Needs ReviewPublic

Authored by markj on Fri, Mar 21, 2:08 PM.

Details

Reviewers
glebius
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 63022
Build 59906: arc lint + arc unit

Event Timeline

markj requested review of this revision.Fri, Mar 21, 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.