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)
commit7b514a886ba50e3b99295b00805f0d5ad750ca66
tree188f1e2fc24e4ef03d1a8d60d88566a96d0aaaf3
parentcb59c87dbc8be2ffa692c50bd22f89025ba7a342
tcp: accept RST without ACK flag

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