]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nft_flow_offload: skip tcp rst and fin packets
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 13 Aug 2019 15:41:13 +0000 (17:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Sep 2019 09:35:15 +0000 (10:35 +0100)
commit2b4a29f0453394ab1870674feca29559badeceed
tree60a8e4dc36b2dfba2bcd02fc51f174789d9c117b
parent1dcb0d4eaf85e9c2173b21c3f23a2e9ef324ecd7
netfilter: nft_flow_offload: skip tcp rst and fin packets

[ Upstream commit dfe42be15fde16232340b8b2a57c359f51cc10d9 ]

TCP rst and fin packets do not qualify to place a flow into the
flowtable. Most likely there will be no more packets after connection
closure. Without this patch, this flow entry expires and connection
tracking picks up the entry in ESTABLISHED state using the fixup
timeout, which makes this look inconsistent to the user for a connection
that is actually already closed.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nft_flow_offload.c