mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-05 18:05:16 +00:00
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:
parent
2dc2d58035
commit
9a4f1a2492
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350254
@ -13409,10 +13409,10 @@ skip_preblock:
|
||||
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);
|
||||
/*-
|
||||
|
Loading…
x
Reference in New Issue
Block a user