lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260204153812.739799-1-sun.jian.kdev@gmail.com>
Date: Wed,  4 Feb 2026 23:38:07 +0800
From: Sun Jian <sun.jian.kdev@...il.com>
To: Florian Westphal <fw@...len.de>
Cc: Pablo Neira Ayuso <pablo@...filter.org>,
	netfilter-devel@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Sun Jian <sun.jian.kdev@...il.com>
Subject: [PATCH v4 0/5] netfilter: annotate NAT helper hook pointers with __rcu

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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ