summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2025-01-14 00:50:34 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-08 09:57:25 +0100
commitbedfabb4e7c980ab72946336d169dacef11abeb2 (patch)
tree95d5e1a8e95929fac7b7c044820ff5e72bd731c3 /include
parentd7fe7e1bbe95d2d1425ec985d92fe8169d6bdc35 (diff)
downloadlinux-bedfabb4e7c980ab72946336d169dacef11abeb2.tar.gz
linux-bedfabb4e7c980ab72946336d169dacef11abeb2.tar.bz2
linux-bedfabb4e7c980ab72946336d169dacef11abeb2.zip
netfilter: nft_flow_offload: update tcp state flags under lock
[ Upstream commit 7a4b61406395291ffb7220a10e8951a9a8684819 ] The conntrack entry is already public, there is a small chance that another CPU is handling a packet in reply direction and racing with the tcp state update. Move this under ct spinlock. This is done once, when ct is about to be offloaded, so this should not result in a noticeable performance hit. Fixes: 8437a6209f76 ("netfilter: nft_flow_offload: set liberal tracking mode for tcp") Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions