From nobody Sun Feb 8 16:50:55 2026 Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) (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 45E4140F8ED for ; Wed, 4 Feb 2026 15:38:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770219521; cv=none; b=OZOEtbAnPtWPU5aQbsW0GJRR/3+yqpP//takBMWqlDXCPaCFv/we/gUGePovG6CqGiFED1kkcIo6GDkIuJnNqVbT7yto8TAB0ADZnqhbAwvkwMPBNrWyXtOni/3Loo6jyRaMl16JSRESh7UtKbXkhpnGz/BXICcN++IdcwVvL3U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770219521; c=relaxed/simple; bh=6eRxcKcX/7d4u13eNT9ExdaPC9M+E4rZi+n/Mbmvpto=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oda1l++g4DWyK3M/Qhlfika6cw1m4HDX+prXDrXs1ih9XiohoQC7FQp68ShpW8bRMG6+5xgENkHbBtWs9pOYjY3LS0ktZWnWWcLh0RAzkRfr6EA9SbDdD67ZwRIz7g6crJKQO/4cfdheLpZz8623jnRwgO1q9Qdmqj7K7POVqtA= 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=WKOF0t0c; arc=none smtp.client-ip=209.85.128.179 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="WKOF0t0c" Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-7927b1620ddso54707b3.0 for ; Wed, 04 Feb 2026 07:38:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770219520; x=1770824320; 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=r+n47fh2bFXkrYOprTyVzl4j2TOZ+to9r5iYbqmKrvQ=; b=WKOF0t0cDjNYodE/lR0HstzMD4SVx1gJ8WVZpMqVdFaRY19OisBP+dCoKR6YfZ/cXl nH19uAvqptnRMXRLQl2DZHv+oXBh4xBs0MWYlBcYEXMnk5hrM7Qr0dim2ruADqNdkOoE NI4urFYy1AXD7w2CalcEOMUgRKcVsuawI1kPyLhQ/3WKOS7Y2nDObKPtyaOuzG6XKAzn u0Nowqe8vMx79vot0AaSdMarxT4x6Thg0mYZRRMOC2QHgIEEBWHKxQG5kp2Gknck4HG5 /x65D5b7ZmUsr2kfNefoySqxV9bFOCOwelKYnr2hR2gKQz6VDnSYZGFr4WIWQ+3OizaE Hqbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770219520; x=1770824320; 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=r+n47fh2bFXkrYOprTyVzl4j2TOZ+to9r5iYbqmKrvQ=; b=TkwjMmvwUQpEP2E9xiyT+Z7hQIJ0HBTsSF5eTb3TGt9K7JUWwjIGHGxsDVnp+9gbms 2sLq37KSr/Qf/Z73lUV8TTp8zb43wn+zRKvLaMWiCPbwnQqfgylnS61hI7Z9iuLsH25z DHM0XMgp0dpiEyNU/OfV6EYXQZG02UepeFy03WAOq3wceO6KADze5uH3prPteN/D57H+ V1ldKIWcoeUCSeZnw8PWTwJHLuxBwiXdlGLD38STPUPMMXGPFlk4HDvAfOJ9Bcvtj3/r XgvEUkxYhK7ReTkB6bm1PRI2zRlZuy8rr1im6xIC3CLjvHxBlnW1EhECu31lCMPnFJeN goXg== X-Forwarded-Encrypted: i=1; AJvYcCWxRhmnsTAGzR9fs6yctcW4wOXL+jzLcm+nYEGHksq6oLyk8FjWqOAPHwnBl5VfVvZmePg0xOPGT3hzfsw=@vger.kernel.org X-Gm-Message-State: AOJu0YxrF2ayWvRjCt3YcSwRzJO/osv54p33cibfzfOIyykv0uAXE0PS /xsuUhWvAmUzZxzHDK6NU5YSMfNhTrSSrp0bD/56Hzq2EsuRD+d0Xtsj X-Gm-Gg: AZuq6aJ5FLj9WaL4q18/x9GALxBWs4wTXi/OEeSgoCThmKOqHY3j6FTTmQ7ts+BI8Gn 5ePoo/XGvXlT3gBseRXTcVU1V4h2vjgpEPoZkcXOGNRpF+s+f8MS58TRl8RQGCNF2Oqc+37A1YJ NEoVLZkIgqXJxCoCvPhsD3N+klBoaFONpef5u6tERkjVabeWgPIu3KRJqsIe5ZZ/ObkalKxtBe2 9z47wtYA0+mCzYstI3dg27CYsmeoCbFaCUVYgFtpXgsbNijwRcSvZo6NGvJGgAMSIYcr0I/M/rU rY2OJPtI8zYas9aghrkNfonZ7tLVDHIYptRl6QCGN7y3urBbpZ/J6VO6iQ1tTMeNlWjrfIXh25C rXseCiQGaxyYi1Y4njtXxYgES6nYIMyr3DI+ncoUnZaqflQkc3TmOaxsSAaodXXLUPjlJ78Sk1P 6Md0qFwzuVoQKxweaK7Tw67nu32ro/RNyrZfW+BKSnekxFT0OGl9wzJsL7Pi1UVcd9WCEIeypHk WyJJohDnEx+8DQpJxM/ X-Received: by 2002:a05:690c:6d0a:b0:795:905:c047 with SMTP id 00721157ae682-7950905c920mr12338527b3.3.1770219520334; Wed, 04 Feb 2026 07:38:40 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Feb 2026 07:38:40 -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 2/5] netfilter: ftp: annotate nf_nat_ftp_hook with __rcu Date: Wed, 4 Feb 2026 23:38:09 +0800 Message-ID: <20260204153812.739799-3-sun.jian.kdev@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260204153812.739799-1-sun.jian.kdev@gmail.com> References: <20260204153812.739799-1-sun.jian.kdev@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The nf_nat_ftp_hook is an RCU-protected pointer but lacks the proper __rcu annotation. Add the annotation to ensure the declaration correctly reflects its usage via rcu_dereference(). Suggested-by: Florian Westphal Signed-off-by: Sun Jian --- include/linux/netfilter/nf_conntrack_ftp.h | 2 +- net/netfilter/nf_conntrack_ftp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/netfilter/nf_conntrack_ftp.h b/include/linux/net= filter/nf_conntrack_ftp.h index 0e38302820b9..f31292642035 100644 --- a/include/linux/netfilter/nf_conntrack_ftp.h +++ b/include/linux/netfilter/nf_conntrack_ftp.h @@ -26,7 +26,7 @@ struct nf_ct_ftp_master { =20 /* For NAT to hook in when we find a packet which describes what other * connection we should expect. */ -extern unsigned int (*nf_nat_ftp_hook)(struct sk_buff *skb, +extern unsigned int (__rcu *nf_nat_ftp_hook)(struct sk_buff *skb, enum ip_conntrack_info ctinfo, enum nf_ct_ftp_type type, unsigned int protoff, diff --git a/net/netfilter/nf_conntrack_ftp.c b/net/netfilter/nf_conntrack_= ftp.c index 617f744a2e3a..74811893dec4 100644 --- a/net/netfilter/nf_conntrack_ftp.c +++ b/net/netfilter/nf_conntrack_ftp.c @@ -43,7 +43,7 @@ module_param_array(ports, ushort, &ports_c, 0400); static bool loose; module_param(loose, bool, 0600); =20 -unsigned int (*nf_nat_ftp_hook)(struct sk_buff *skb, +unsigned int (__rcu *nf_nat_ftp_hook)(struct sk_buff *skb, enum ip_conntrack_info ctinfo, enum nf_ct_ftp_type type, unsigned int protoff, --=20 2.43.0