aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-08-09 11:01:35 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-08-09 14:41:21 +0200
commit1e5b2471bcc4838df298080ae1ec042c2cbc9ce9 (patch)
treeafb60cb11b763df36f19564e1d85e93ff7f3ee31 /net/sctp
parentnetfilter: nf_flow_table: conntrack picks up expired flows (diff)
downloadlinux-dev-1e5b2471bcc4838df298080ae1ec042c2cbc9ce9.tar.xz
linux-dev-1e5b2471bcc4838df298080ae1ec042c2cbc9ce9.zip
netfilter: nf_flow_table: teardown flow timeout race
Flows that are in teardown state (due to RST / FIN TCP packet) still have their offload flag set on. Hence, the conntrack garbage collector may race to undo the timeout adjustment that the fixup routine performs, leaving the conntrack entry in place with the internal offload timeout (one day). Update teardown flow state to ESTABLISHED and set tracking to liberal, then once the offload bit is cleared, adjust timeout if it is more than the default fixup timeout (conntrack might already have set a lower timeout from the packet path). Fixes: da5984e51063 ("netfilter: nf_flow_table: add support for sending flows back to the slow path") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/sctp')
0 files changed, 0 insertions, 0 deletions