summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <fmancera@suse.de>2026-05-27 00:58:31 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2026-06-01 14:43:53 +0300
commit2fcba19caaeb2a33017459d3430f057967bb91b6 (patch)
treefd1dec24cb0abc3f3655c7bcd788e27e5a841f39 /include/linux
parent36d29ceec32c8206a12dc2810cf65fd394e45baa (diff)
downloadlinux-2fcba19caaeb2a33017459d3430f057967bb91b6.tar.xz
netfilter: synproxy: add mutex to guard hook reference counting
As the synproxy infrastructure register netfilter hooks on-demand when a user adds the first iptables target or nftables expression, if done concurrently they can race each other. Introduce a mutex to serialize the refcount control blocks access from both frontends. While a per namespace mutex might be more efficient, it is not needed for target/expression like SYNPROXY. Fixes: ad49d86e07a4 ("netfilter: nf_tables: Add synproxy support") Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions