1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Fix a small bug in the tcp_log_id where the bucket

was unlocked and yet the bucket-unlock flag was not
changed to false. This can cause a panic if INVARIANTS
is on and we go through the right path (though rare).
This fixes the correct bug :)

Reported by:	syzbot+179a1ad49f3c4c215fa2@syzkaller.appspotmail.com
Reviewed by:	tuexen@
This commit is contained in:
Randall Stewart 2019-04-10 18:58:11 +00:00
parent 394b62b7ab
commit 8021928623
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346094

View File

@ -752,6 +752,7 @@ tcp_log_set_id(struct tcpcb *tp, char *id)
RECHECK_INP();
if (tp->t_lib != NULL) {
TCPID_BUCKET_UNLOCK(tlb);
bucket_locked = false;
tlb = NULL;
goto restart;
}