sctp: make sure new locking requirements are satisfied.
Reported by: syzbot+cd3c1dd64861b8c200bd@syzkaller.appspotmail.com MFC after: 3 days
This commit is contained in:
parent
32066c96fa
commit
e255f0c9fb
@ -13321,6 +13321,10 @@ skip_preblock:
|
||||
sp->processing = 0;
|
||||
}
|
||||
SCTP_TCB_SEND_UNLOCK(stcb);
|
||||
if (!hold_tcblock) {
|
||||
SCTP_TCB_LOCK(stcb);
|
||||
hold_tcblock = true;
|
||||
}
|
||||
goto skip_out_eof;
|
||||
}
|
||||
/* What about the INIT, send it maybe */
|
||||
@ -13513,8 +13517,8 @@ skip_preblock:
|
||||
if (error != 0) {
|
||||
goto out;
|
||||
}
|
||||
dataless_eof:
|
||||
|
||||
dataless_eof:
|
||||
KASSERT(stcb != NULL, ("stcb is NULL"));
|
||||
KASSERT(hold_tcblock, ("hold_tcblock is false"));
|
||||
SCTP_TCB_LOCK_ASSERT(stcb);
|
||||
@ -13602,6 +13606,7 @@ dataless_eof:
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
skip_out_eof:
|
||||
KASSERT(stcb != NULL, ("stcb is NULL"));
|
||||
KASSERT(hold_tcblock, ("hold_tcblock is false"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user