🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25125

Re: [PATCH net] netfilter: conntrack: serialize helper extension allocation

#25125
From: Pablo Neira Ayuso
Date: Tue, 01 Dec 2026 09:21
17 lines
9046 bytes
On Tue, Dec 01, 2026 at 04:58:14PM +0800, zhuorao yang wrote:
> Two CPUs can add the helper extension to the same unconfirmed conntrack
> when shared skbs are evaluated concurrently.  nf_ct_ext_add() then calls
> krealloc() on the same ct->ext from both CPUs.  If the first call moves
> the extension allocation, the second call can double-free the old one.
> 
> Serialize nf_ct_helper_ext_add() with the conntrack lock.  The lock also
> covers publishing IPS_HELPER_BIT and initializing the expectation list,
> so a concurrent caller observes a fully initialized helper extension.

Thanks for your yet another duplicated patch.

Please, follow up the mailing list before posting duplicated patches.

Talking to the chat bot is not sufficient, you have to keep track on
the mailing list.
Technical Details
Message-ID: <aw6RlOy6hGlvQ2VU@chamomile>
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374896-linux-kernel-netdev=dewy.ru
References: <20261201085814.82573-1-alex000young@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374896-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] netfilter: conntrack: serialize helper extension
 allocation
Date: Tue, 1 Dec 2026 10:21:24 +0100
Organization: Usenet Network
Message-ID: <aw6RlOy6hGlvQ2VU@chamomile>
References: <20261201085814.82573-1-alex000young@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="1672569"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:1swYCr4vrxKy60G/2y4UGONxQU0= sha256:4G+vvh/7nowcUlA67BdXkTnNPAI+WT2BYHa7NmYPY8A=
	sha1:QCZvRXUMiSBkAe1uytLq8qV+mt8= sha256:x/wrFp8eQcoTeptGf5JKmh8LL5gL3A83bmEBaLEvFbM=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id D2A5E1172FC; Tue,  1 Dec 2026 12:21:51 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=netfilter.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id dipdYuVwlewN;
	Tue,  1 Dec 2026 12:21:49 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374896-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=netfilter.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 3EAA31172F6; Tue,  1 Dec 2026 12:21:37 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 395B92DAAE; Tue,  1 Dec 2026 09:21:33 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1796116892;
	b=LHujd17R/BK3KHUOeOdkkfbgE5zlhVcslYq58+gdiF8Uih1UulRHX3HbRuUNVZ1rscW5
	 7J2mUsODYDwABwSZ0Ssb/VLdZ+0cpY/cLSveIge8VDg/WNhCMfhh3WCjaMkR/ibP8H6k9
	 09mrn/FXVszjoVk7X2UBVUVfRif+g0HsXV0/lCRj3K+WkTVGddSHvmYBaTuUVkjMJk8RI
	 7lWKe0edW1hnGPt5MipadKqMuPlK0veWiStnXzyvMxOu9miVoCs8hmrYUVx+hthh1jLiM
	 k7i0JoqisbWku3fZOZiNXOgZwGws/PsclN/0EyH1o0D2B5oyvVz28gahq63Wm5BPR4A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796116892;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=jWn/dGcs3Zx8jAuG9Hfp2C9minly3f1o3+be2jFzSL4=;
	b=g3NKTWdjZwGtsuQQtPaLQ3nnDheMvBpzuNbz7t6QZKCH611mrQ8HJ+CbQaBEVdVmmrZG
	 LDVFy0zOpb1CSpF2Av105XCc47JJVjdyVwhLPauCk0fPpnghS/5HVySwZh4YHTvaY0PM9
	 LTsjaMA1ooRo11qamTE7hs1Ouf0Q1wHh3988l4yZlH1wyNYqgAJHaiew9I2jlj60Z+gUP
	 5D/tqRj/Ycgr0vKiN1QZKBByZY7HLrplAC2BPsO22zU+gjl+L24q8cn2ERl8r1HeCUwQ8
	 GGin+A2Ola0slIMNPbBwR2bHCJX0lnwdkl9Vr9vO3YGSSm6yUaB0yKV2JTu4sEAfnWw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=LRn4VwjT;
	dmarc=none header.from=netfilter.org;
	spf=pass smtp.mailfrom=netfilter.org;
	arc=fail smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 00CBB606A32F;
	Tue,  1 Dec 2026 09:21:32 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=LRn4VwjT
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.70.190.124
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796116891;
	b=w2Hp4r1vnroamgccfYy5cDBBu/cX2Or8reNHGZ/+05c/dNdH7Mcz/gsBdep7f++m33Oq
	 g3aH3vXQGbQaN+O2ATUVnLef2IHAToERxINe65MGAyWhmh6Y8fdK3ySfb7i1awaw4TT/U
	 C6YOYSb4MA+yt6Byc+dZapNf3NyaMn2to1R20hqkl7nT3hYnRG3t5Q+SJAIOWCKy5RxQk
	 Cjl9dkx5P8IFnnbrqsFHmyUJJd/kVlNHTrV+QhbCPxEWCQr/Lpxd/0kwUkfbN/7cInIP2
	 q1TS0s1ZTatf18xtF9NjOZ+LJhc1Mvlc/B+ISTrIyWgmDUmMhHG3q3+bKyRIgHXVlPw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796116891;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To:X-Spam-Status:X-Spam-Checker-Version;
	bh=jWn/dGcs3Zx8jAuG9Hfp2C9minly3f1o3+be2jFzSL4=;
	b=juRtnASfklvZTy16S5vvLhHcHl08arg28sUrNq4w6HjKT+yYlnL9oAHYTWJyjXFY37ww
	 9ASeKuMa2ig/UQzkqOWc1+OJPp/8on9BAr03/k8i9lfyMQXJIsz3i+84NEXPjPOPeDhMR
	 s268IDmS+v/vm/zvsXcZy918tcCDhtX7KDup+79qbzWvsZe7JTCweTqt+6yliP61icy/z
	 /VpQvGggPqTNFEq+X6ygY5ayVq3rSgG/3m3TaNO3vz1OpmmXlB1cqnp2ZRnokqZlNIlhy
	 FlzKUoQZvdn0ZDnzH6juao6yKjY3tiZFmLYN0RPq0OnIIL0A/Q3ZFOM+mK88weGLXdw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=netfilter.org;
	spf=pass smtp.mailfrom=netfilter.org;
	dkim=pass header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=LRn4VwjT;
	arc=none smtp.remote-ip=217.70.190.124
X-Received: from mail.netfilter.org (mail.netfilter.org [217.70.190.124])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with UTF8SMTPS id 227EA606A31A;
	Tue,  1 Dec 2026 09:21:29 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 227EA606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org;
	s=2025; t=1796116887;
	bh=jWn/dGcs3Zx8jAuG9Hfp2C9minly3f1o3+be2jFzSL4=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
	b=LRn4VwjTBFgeoSYtwzAL0Xqm0G6IXK/KpZs1FRFrWpLmf3tMfIICYRftmqnkCCG+h
	 Zh7DjUF33l+nJuJgSYKbNP/HTwlhI4CnFAreFhCV7TeDz0zza8l1J0eZ9qPwO/B+zW
	 DicgVhXVXZuFRTfqZtzdqO4zYqAn0dg7+XO+Ah20MfIGv4b3veZi7td1+vu+APZdBL
	 R73ddL+aZppjvS9Vg1QAZLTLv71Y4WccNGvVnAv8FBUWg9MbRPwXbyWslRVXXKHNne
	 25y9eT1K/XXngdoAGcQ3xgffTr20oY3rjRW1+0co2lLQC51lXaxFaojyL1pWQoKDxL
	 p5DdvS9oiAuUw==
X-Received: from netfilter.org (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with UTF8SMTPSA id 402F660057;
	Tue,  1 Dec 2026 10:21:27 +0100 (CET)
X-Cc: Florian Westphal <fw@strlen.de>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Willem de Bruijn <willemb@google.com>,
	netfilter-devel@vger.kernel.org, coreteam@netfilter.org,
	netdev@vger.kernel.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261201085814.82573-1-alex000young@gmail.com>