From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45C2725776 for ; Wed, 4 Feb 2026 15:38:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770219513; cv=none; b=uDjW3Mi3bPmianfJICZPeR5nbyDptAHnQC6+bPz7lh4J9g5WITuZp0QAKiRORXp1FhTGaPbUFg1tWXTPx4EYBugs6bamV57GVyi/pq/4CuR0cyHgtVsjl2FO1AmcCajXnKmaeApJ2jws84KRBvuQxT0RKpMDqVk+85cFuDn2WGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770219513; c=relaxed/simple; bh=dazWroJUwQi0nrwSDlFxB7suit2nOEw7he12y3yOnqU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cNLUt+XKv2USzkNhgIPudsz7iScqcij/A8IqWxfvgG8burmEVwvL7G6u5Hu7ww9uXuxoI/0wUw1yWqtTog7pL0GACURYTrB7jW9uA+aKP99j0SO7tALanZ8k+VgOFNj0mTEX6rODdx7Pw6ERLbfy/PwI1Yn5qttpeezsS8+WYQw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NP4ByoZ0; arc=none smtp.client-ip=209.85.128.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NP4ByoZ0" Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-7927261a3acso71884677b3.0 for ; Wed, 04 Feb 2026 07:38:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770219512; x=1770824312; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HpODAycToOiJmSD/e3ZFdCwq9sHP+TaddEYeB8Erx0A=; b=NP4ByoZ08sf7RBiXN+SbJMYTj6rfGiBOQgtTrWSzyTEUe3ueadqEuK/7SyrBXyFk+w xTiqhKlhOtIlfqkHzzPALX2711cV5nJpMHSo6swK/EAVynzWR1f6iWipu4BxKB1oFQvE YV56nqOXbS8/kQW9UT7wb3BZrSRDUGLIUVO6WZX1mBNXEpSuaichamwXtWZesz1p85tM dthQRf2bCasj+OqiztYhqOSMfcYPjoK2DPkS90RXTObWRyHfBy0oIQl8dC1cV3/OUWrV oQCWTCSrquAF3Fu3aKfiPAjjL6VtLa711Qk2hkTnZZOP8Zd3vmdyKokR543T+cDBB9G4 qTLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770219512; x=1770824312; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=HpODAycToOiJmSD/e3ZFdCwq9sHP+TaddEYeB8Erx0A=; b=FkPjLWnj2/T92hY1WhNGqCLYWAlcmxNc80cJMYL/PU/xUk/SAC1Trhl5ahZ2yfqFxy qdlHdTXhbHLj/4EYkl3bLE4OdEpsQr6XI4PQM3cZCv6ANI6J122IeHKlM1k3dkqKeopb lBWlXGT/YEgKba2KBcbJyWu3+R7Wbj/2krj5rJ2L4FUqWE9TDyP5R4majit/SHSDnbv2 n+nI5aD5EC7h18mNPxntafObTuAxuDjjQSCyph3b0BLJ4TGOsyxr5+lyClS1zyealp0V wBXuxWUW/YWdogTMXyw6x0iS7j/qR7gTwV7WNQG+9oBn3XGqbcjQakcl+EfRQc+07bYh ThZw== X-Forwarded-Encrypted: i=1; AJvYcCXcKuoLy+B4PRex74vRgytoKCvOFa+CF3sC0rweGPDTTxVzpKetWjJEMsQVpAgVS2ULRwyrLStAq+WfycA=@vger.kernel.org X-Gm-Message-State: AOJu0Ywj4/2HhJSzQLuZ+G4k7yCgrnY5seCLBO3bGm/uaP2NsGSYWRmo n8zdwQJUyBynxumsY7a84qaHdgZipbeGfQ5j1xCpFME0DZZg1aUzEpa3ezYefASkW14= X-Gm-Gg: AZuq6aK1nohOQOUWciHublO2kADT5fD+shNw66/kl5mbb4c8MR2CYr3RFMmzQzvXrVd 5T15Unk8DEEHrGmwsoIUqmEw+YHjEPNE/9cr4s4m29NpklrKfSphvSS88tGMzuZzdziu4ScYpRB uqgpu72faL5NTA1074+AYloCfM7KeFYo7fpM3rBYrLSDEWNh4n5ASvI4jvZa+ErUls7YiogDvH1 dqJ1Ktt3SM3ub13TxAfCvvC/CDGSFPeg/9WUpUzPtOrWphDr01L3jleZ0DIxwXXt1olOu5M4hfm ylpxuR8YNcTUWiFodFOVxAnApJ48PMuzvoXixWf2oSqDsDWinwDr+cvRv1NjFX4MumayOYBx/ZT BTTPprjZFw0uya6fM9D+vR1aNF0UA48rcndN25z0Q/8xCk7u6qoZbjHzW1oU4rIt5tOJKG5nsWM Ygyde4UJAFUptIHrXFDDptv4kLZVOT09d6WR7vDJqyi3jSDLM/TweXHtK1Evgb5AsL93kbwejEw coL70M4VKXmdvTpJDN4 X-Received: by 2002:a05:690c:6107:b0:794:d8a8:674 with SMTP id 00721157ae682-794fe796c75mr33814437b3.53.1770219512303; Wed, 04 Feb 2026 07:38:32 -0800 (PST) Received: from localhost.localdomain (108-214-96-168.lightspeed.sntcca.sbcglobal.net. [108.214.96.168]) by smtp.gmail.com with ESMTPSA id 00721157ae682-794fefedd4bsm23609397b3.48.2026.02.04.07.38.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Feb 2026 07:38:32 -0800 (PST) From: Sun Jian To: Florian Westphal Cc: Pablo Neira Ayuso , netfilter-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Sun Jian Subject: [PATCH v4 0/5] netfilter: annotate NAT helper hook pointers with __rcu Date: Wed, 4 Feb 2026 23:38:07 +0800 Message-ID: <20260204153812.739799-1-sun.jian.kdev@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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