summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2026-04-15 18:29:45 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2026-04-21 00:45:41 +0300
commit6eda0d771f94267f73f57c94630aa47e90957915 (patch)
tree3864a2836660699d59bf384eef2be86476aaa7a4 /scripts/const_structs.checkpatch
parentb6fe26f86a1649f84e057f3f15605b08eda15497 (diff)
downloadlinux-6eda0d771f94267f73f57c94630aa47e90957915.tar.xz
netfilter: nat: use kfree_rcu to release ops
Florian Westphal says: "Historically this is not an issue, even for normal base hooks: the data path doesn't use the original nf_hook_ops that are used to register the callbacks. However, in v5.14 I added the ability to dump the active netfilter hooks from userspace. This code will peek back into the nf_hook_ops that are available at the tail of the pointer-array blob used by the datapath. The nat hooks are special, because they are called indirectly from the central nat dispatcher hook. They are currently invisible to the nfnl hook dump subsystem though. But once that changes the nat ops structures have to be deferred too." Update nf_nat_register_fn() to deal with partial exposition of the hooks from error path which can be also an issue for nfnetlink_hook. Fixes: e2cf17d3774c ("netfilter: add new hook nfnl subsystem") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions