From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.70.190.124 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== 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== 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 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) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 227EA606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=LRn4VwjT 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== 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) Date: Tue, 1 Dec 2026 10:21:24 +0100 From: Pablo Neira Ayuso To: zhuorao yang Cc: Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org Subject: Re: [PATCH net] netfilter: conntrack: serialize helper extension allocation Message-ID: References: <20261201085814.82573-1-alex000young@gmail.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20261201085814.82573-1-alex000young@gmail.com> 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.