]> git.ipfire.org Git - thirdparty/linux.git/commit
netfilter: ctnetlink: do not allow to reset helper on existing conntrack
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 22 Jun 2026 11:12:49 +0000 (13:12 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 23 Jun 2026 06:11:22 +0000 (08:11 +0200)
commitaaa0cd698ffa5dffbb0a1e81474a63a9f3ee47b1
tree26d0cc84210746ebf82ad6912682d34c68c93a88
parent8a2cfe7951f679350d39239de4c610448731a68e
netfilter: ctnetlink: do not allow to reset helper on existing conntrack

This feature allows to reset a helper for an existing conntrack, but it
is not safe. This requires a synchronized_rcu() call after resetting the
helper, which is going to be expensive for a large batch of conntrack
entries. This also needs to call to the .destroy callback to release the
GRE/PPTP mappings to fix it.

This feature antedates the creation of the conntrack-tools and I cannot
find a good use-case for this. Given that I cannot find any user in the
netfilter.org userspace tree, I prefer to remove this feature.

Fixes: c1d10adb4a52 ("[NETFILTER]: Add ctnetlink port for nf_conntrack")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c