Skip to content

Commit 9cfd086

Browse files
edumazetdavem330
authored andcommitted
tcp: remove BUG_ON() in tcp_check_req()
Once listener is lockless, its sk_state can change anytime. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ba8e275 commit 9cfd086

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/ipv4/tcp_minisocks.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,6 @@ struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb,
578578
__be32 flg = tcp_flag_word(th) & (TCP_FLAG_RST|TCP_FLAG_SYN|TCP_FLAG_ACK);
579579
bool paws_reject = false;
580580

581-
BUG_ON(fastopen == (sk->sk_state == TCP_LISTEN));
582-
583581
tmp_opt.saw_tstamp = 0;
584582
if (th->doff > (sizeof(struct tcphdr)>>2)) {
585583
tcp_parse_options(skb, &tmp_opt, 0, NULL);

0 commit comments

Comments
 (0)