Don't hold a mutex while calling sbwait. This was found by syzkaller.
Submitted by: rrs@ Reported by: markj@ MFC after: 1 week
This commit is contained in:
@@ -13409,10 +13409,10 @@ sctp_lower_sosend(struct socket *so,
|
||||
stcb,
|
||||
SCTP_OUTPUT_FROM_USR_SEND, SCTP_SO_LOCKED);
|
||||
}
|
||||
if (hold_tcblock == 1) {
|
||||
SCTP_TCB_UNLOCK(stcb);
|
||||
hold_tcblock = 0;
|
||||
}
|
||||
}
|
||||
if (hold_tcblock == 1) {
|
||||
SCTP_TCB_UNLOCK(stcb);
|
||||
hold_tcblock = 0;
|
||||
}
|
||||
SOCKBUF_LOCK(&so->so_snd);
|
||||
/*-
|
||||
|
||||
Reference in New Issue
Block a user