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:
Michael Tuexen 2019-07-23 18:31:07 +00:00
parent 2dc2d58035
commit 9a4f1a2492
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350254

View File

@ -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);
/*-