HomeFreeBSD

sctp: fix usage of stream scheduler functions

Description

sctp: fix usage of stream scheduler functions

sctp_ss_scheduled() should only be called for streams that are
scheduled. So call sctp_ss_remove_from_stream() before it.
This bug was uncovered by the earlier cleanup.

Reported by: syzbot+bbf739922346659df4b2@syzkaller.appspotmail.com
Reported by: syzbot+0a0857458f4a7b0507c8@syzkaller.appspotmail.com
Reported by: syzbot+a0b62c6107b34a04e54d@syzkaller.appspotmail.com
Reported by: syzbot+0aa0d676429ebcd53299@syzkaller.appspotmail.com
Reported by: syzbot+104cc0c1d3ccf2921c1d@syzkaller.appspotmail.com

(cherry picked from commit 5b53e749a95e7f18475df9f9ce7984a31880a7ee)

Details

Provenance
tuexenAuthored on Sep 28 2021, 3:25 AM
Parents
rGd7351c4104a3: sctp: avoid locking an already locked mutex
Branches
Unknown
Tags
Unknown