]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sctp: fix usage of stream scheduler functions
authorMichael Tuexen <tuexen@FreeBSD.org>
Tue, 28 Sep 2021 03:25:58 +0000 (05:25 +0200)
committerMichael Tuexen <tuexen@FreeBSD.org>
Tue, 22 Feb 2022 22:56:26 +0000 (23:56 +0100)
commitd67ef7473591476ebb44fb37da2ec6f104035be6
tree94df328181596054739d5ac02ff30b6ebe8ecb74
parentd7351c4104a3dbd793f2ae7303cfdd948fc229ff
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)
sys/netinet/sctp_output.c