Fix an SCTP related locking issue. Don't report that the TCB_SEND_LOCK

is owned, when it is not.

This issue was found by running syzkaller.
MFC after:		1 week
This commit is contained in:
tuexen 2019-04-11 20:39:12 +00:00
parent bd383e74e5
commit 7186df98c8

View File

@ -3995,7 +3995,7 @@ sctp_abort_notification(struct sctp_tcb *stcb, uint8_t from_peer, uint16_t error
return;
}
/* Tell them we lost the asoc */
sctp_report_all_outbound(stcb, error, 1, so_locked);
sctp_report_all_outbound(stcb, error, 0, so_locked);
if (from_peer) {
sctp_ulp_notify(SCTP_NOTIFY_ASSOC_REM_ABORTED, stcb, error, abort, so_locked);
} else {