]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: annotate NAT helper hook pointers with __rcu
authorSun Jian <sun.jian.kdev@gmail.com>
Thu, 5 Feb 2026 12:30:17 +0000 (20:30 +0800)
committerFlorian Westphal <fw@strlen.de>
Tue, 17 Feb 2026 14:04:20 +0000 (15:04 +0100)
commit07919126ecfc392102555a70016db3e591abcb3d
tree6ad2cf63a58480363d971bf3ca28c49bffb4a54d
parent77c5e3fdd2793f478e6fdae55c9ea85b21d06f8f
netfilter: annotate NAT helper hook pointers with __rcu

The NAT helper hook pointers are updated and dereferenced under RCU rules,
but lack the proper __rcu annotation.

This makes sparse report address space mismatches when the hooks are used
with rcu_dereference().

Add the missing __rcu annotations to the global hook pointer declarations
and definitions in Amanda, FTP, IRC, SNMP and TFTP.

No functional change intended.

Suggested-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Sun Jian <sun.jian.kdev@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
include/linux/netfilter/nf_conntrack_amanda.h
include/linux/netfilter/nf_conntrack_ftp.h
include/linux/netfilter/nf_conntrack_irc.h
include/linux/netfilter/nf_conntrack_snmp.h
include/linux/netfilter/nf_conntrack_tftp.h
net/netfilter/nf_conntrack_amanda.c
net/netfilter/nf_conntrack_ftp.c
net/netfilter/nf_conntrack_irc.c
net/netfilter/nf_conntrack_snmp.c
net/netfilter/nf_conntrack_tftp.c