tcp: consume incoming skb leading to a reset
authorEric Dumazet <edumazet@google.com>
Sat, 16 Apr 2022 00:10:39 +0000 (17:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2022 12:31:31 +0000 (13:31 +0100)
commitd9d024f96609016628d750ebc8ee4a6f0d80e6e1
treef05c8eb9accd468f1815cb9d3d926481f71641f7
parent7925c2d93005ac943bc8517e16f6377132fd251f
tcp: consume incoming skb leading to a reset

Whenever tcp_validate_incoming() handles a valid RST packet,
we should not pretend the packet was dropped.

Create a special section at the end of tcp_validate_incoming()
to handle this case.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c