mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +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:
parent
394b62b7ab
commit
8021928623
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346094
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user