]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: accept RST without ACK flag
authorEric Dumazet <edumazet@google.com>
Thu, 10 Jan 2013 16:18:47 +0000 (16:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jan 2013 06:49:30 +0000 (22:49 -0800)
commitc1574a2031dcdd68bd4b95dad38bbadafaed8a03
tree188f1e2fc24e4ef03d1a8d60d88566a96d0aaaf3
parente205a7865be6d93fa2ffdecd9493369793437398
tcp: accept RST without ACK flag

commit 8cf17d984132e (tcp: should drop incoming frames without ACK flag
set) added a regression on the handling of RST messages.

RST should be allowed to come even without ACK bit set. We validate
the RST by checking the exact sequence, as requested by RFC 793 and
5961 3.2, in tcp_validate_incoming()

Reported-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Tested-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c