[PATCH v4 0/5] netfilter: annotate NAT helper hook pointers with __rcu

Sun Jian posted 5 patches 2 days, 20 hours ago
There is a newer version of this series
include/linux/netfilter/nf_conntrack_amanda.h | 12 ++++++------
include/linux/netfilter/nf_conntrack_ftp.h    |  2 +-
include/linux/netfilter/nf_conntrack_irc.h    |  2 +-
include/linux/netfilter/nf_conntrack_snmp.h   |  2 +-
include/linux/netfilter/nf_conntrack_tftp.h   |  2 +-
net/netfilter/nf_conntrack_amanda.c           | 14 +++++++-------
net/netfilter/nf_conntrack_ftp.c              |  2 +-
net/netfilter/nf_conntrack_irc.c              |  2 +-
net/netfilter/nf_conntrack_snmp.c             |  2 +-
net/netfilter/nf_conntrack_tftp.c             |  2 +-
10 files changed, 21 insertions(+), 21 deletions(-)
[PATCH v4 0/5] netfilter: annotate NAT helper hook pointers with __rcu
Posted by Sun Jian 2 days, 20 hours ago
This series adds the missing __rcu annotations to NAT helper hook
pointers across several netfilter helper modules.

These global hook pointers are updated and dereferenced under RCU rules,
so their types should be annotated accordingly. This is a pure annotation
change (no functional changes), and it also improves static checking.

Changes since v2: (no v3 posted)
  - Extend the series from nf_nat_amanda to the other NAT helpers
    (ftp/irc/snmp/tftp).
  - Keep the changes limited to __rcu annotations on the global hook
    pointer declarations/definitions only (no functional changes).

v2:
  - Place __rcu annotation inside parentheses (per Florian Westphal).
  - Use rcu_dereference() instead of rcu_dereference_raw().

Sun Jian (5):
  netfilter: amanda: annotate nf_nat_amanda_hook with __rcu
  netfilter: ftp: annotate nf_nat_ftp_hook with __rcu
  netfilter: irc: annotate nf_nat_irc_hook with __rcu
  netfilter: snmp: annotate nf_nat_snmp_hook with __rcu
  netfilter: tftp: annotate nf_nat_tftp_hook with __rcu

 include/linux/netfilter/nf_conntrack_amanda.h | 12 ++++++------
 include/linux/netfilter/nf_conntrack_ftp.h    |  2 +-
 include/linux/netfilter/nf_conntrack_irc.h    |  2 +-
 include/linux/netfilter/nf_conntrack_snmp.h   |  2 +-
 include/linux/netfilter/nf_conntrack_tftp.h   |  2 +-
 net/netfilter/nf_conntrack_amanda.c           | 14 +++++++-------
 net/netfilter/nf_conntrack_ftp.c              |  2 +-
 net/netfilter/nf_conntrack_irc.c              |  2 +-
 net/netfilter/nf_conntrack_snmp.c             |  2 +-
 net/netfilter/nf_conntrack_tftp.c             |  2 +-
 10 files changed, 21 insertions(+), 21 deletions(-)

-- 
2.43.0