aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorFrancesco Ruggeri <fruggeri@arista.com>2020-10-07 12:32:52 -0700
committerPablo Neira Ayuso <pablo@netfilter.org>2020-10-20 13:54:53 +0200
commit4f25434bccc28cf8a07876ef5142a2869a674353 (patch)
treead57d912022c7ec6be42bc0bed4fb52d1e3bdeac /net/ipv6
parentipvs: adjust the debug info in function set_tcp_state (diff)
downloadlinux-dev-4f25434bccc28cf8a07876ef5142a2869a674353.tar.xz
linux-dev-4f25434bccc28cf8a07876ef5142a2869a674353.zip
netfilter: conntrack: connection timeout after re-register
If the first packet conntrack sees after a re-register is an outgoing keepalive packet with no data (SEG.SEQ = SND.NXT-1), td_end is set to SND.NXT-1. When the peer correctly acknowledges SND.NXT, tcp_in_window fails check III (Upper bound for valid (s)ack: sack <= receiver.td_end) and returns false, which cascades into nf_conntrack_in setting skb->_nfct = 0 and in later conntrack iptables rules not matching. In cases where iptables are dropping packets that do not match conntrack rules this can result in idle tcp connections to time out. v2: adjust td_end when getting the reply rather than when sending out the keepalive packet. Fixes: f94e63801ab2 ("netfilter: conntrack: reset tcp maxwin on re-register") Signed-off-by: Francesco Ruggeri <fruggeri@arista.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions