HomeFreeBSD

inpcb: use internal flag to mark pcbs that are inserted into lbgroup

Description

inpcb: use internal flag to mark pcbs that are inserted into lbgroup

Using INP_REUSEPORT_LB is unsafe, as it is basically a copy of socket's
SO_REUSEPORT_LB flag, which can be cleared by userland after bind().

Reviewed by: markj
Reported by: syzbot+e7d2e451f89fb444319b@syzkaller.appspotmail.com
Differential Revision: https://reviews.freebsd.org/D41197

Details

Provenance
glebiusAuthored on Jul 27 2023, 3:35 AM
Reviewer
markj
Differential Revision
D41197: inpcb: use internal flag to mark pcbs that are inserted into lbgroup
Parents
rG474708c334a7: fork1(): properly track the state of the pg_killsx lock
Branches
Unknown
Tags
Unknown