HomeFreeBSD

sctp: use a valid outstream when adding it to the scheduler

Description

sctp: use a valid outstream when adding it to the scheduler

Without holding the stcb send lock, the outstreams might get
reallocated if the number of streams are increased.

Reported by: syzbot+4a5431d7caa666f2c19c@syzkaller.appspotmail.com
Reported by: syzbot+aa2e3b013a48870e193d@syzkaller.appspotmail.com
Reported by: syzbot+e4368c3bde07cd2fb29f@syzkaller.appspotmail.com
Reported by: syzbot+fe2f110e34811ea91690@syzkaller.appspotmail.com
Reported by: syzbot+ed6e8de942351d0309f4@syzkaller.appspotmail.com

(cherry picked from commit 34b1efcea19dd4324eecd19d2de313d039fd9656)

Details

Provenance
tuexenAuthored on Sep 20 2021, 1:52 PM
Parents
rGc05bf58603b0: sctp: fix FCFS stream scheduler
Branches
Unknown
Tags
Unknown