]> 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)
commit8952368e2aa2fda853c925c939b2a4682d054a91
tree188f1e2fc24e4ef03d1a8d60d88566a96d0aaaf3
parentdc5433353fefca050507307a404f6be85be3aca6
tcp: accept RST without ACK flag

commit e566eb00dd7c2 (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