From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.216.245.30 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796382748; b=JB7zFuq6N6IQONdKAvDuMbNLvVt1/gqs4xQNgC+MRx3+Z3RXgF+W61s3NYw7/peHeLve YV7+h5ZibmrxL1X/TXSHZ3DukVPKTR77BKkKnTVeo9mZEYvRo6tEW+wFpUWCZnx04BlvL 51wuuX6kbmbokJuHnRUB5Fdp1sF8WzuIun/in1vYU/DsYATn20uK83I2K06pFlyrCSjUP 8QNh/fbvrF1E/IE9qdao6/tBa1aYrllDMFmlQ8BRhwE2Ra4Xsb0PgepDr5MsImcGug8Zr ZHU+FizTLhIEV4mtLasS5F3XqUIiJL46N5YwpxrvVKT7pYOlq3Y0zTwa3L9csY1R2lg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796382748; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=mfAVc+3CbTVCkNdhjqTLtSa6ujIvz6+ke4v3fIuIVx4=; b=gCDpB06+ptVbZFiyfiir6a00LcIRK0qANbgyqlGUVh0WXm3nBfTbU2yqHteotvo4Fnp6 JVcGkOlrqqJDCP1KQrltloL7Vls57bzJrddTyOI3xkNLCHZIGPTyHnjphpze8bWO4bCzU 3HqHlwG42wEnLx2xcEnZIuOFj8ZOrQ+483tQRpaX1cklPHHNwJiVSQy4B9RE9OsxGwE7p RIslG6nyJLuA3W88HtIqpo/B3UmzN8CvUZ6WX0SWvqs9hBIFt4ndgVakR0zvl7ZyEkMcf /Qb2rCvH5EAuZNKiBpAyBEjVIlfq/9Qmg3iSyDO8AF9g/wRycFEauSkdniP9e2RRILA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; arc=none smtp.remote-ip=91.216.245.30 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30]) (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 ESMTPS id 46D87606A336; Fri, 4 Dec 2026 11:12:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46D87606A336 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=strlen.de Received: by Chamillionaire.breakpoint.cc (Postfix, from userid 1003) id 1092A60255; Fri, 04 Dec 2026 12:12:19 +0100 (CET) Date: Fri, 4 Dec 2026 12:12:18 +0100 From: Florian Westphal To: zhuorao yang Cc: pablo@netfilter.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org Subject: Re: [PATCH v4] netfilter: nft_ct: reject shared conntrack extension updates Message-ID: References: <179636957458.3305.6694386152606528641@kernel.org> <20261204073358.67941-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=us-ascii Content-Disposition: inline In-Reply-To: <20261204073358.67941-1-alex000young@gmail.com> zhuorao yang wrote: > An unconfirmed conntrack is mutable and assumes exclusive skb ownership. > Cloned skbs can otherwise reach nft_ct extension paths concurrently and > call nf_ct_ext_add() on the same ct->ext. Since nf_ct_ext_add() uses > krealloc(), this can free and replace one allocation while another CPU > still uses it. > > Reject packets that reference a shared unconfirmed conntrack before any > nft_ct extension allocation is attempted. This covers helper, expect, > timeout, and event-cache extensions without adding a lock to the generic > helper API. Nak. Playing whack-a-mole with stunts like this is getting us nowhere. There are dozen of similar bugs like this all over conntrack. It'll take time to rewrite the core assumptions cleanly. Changes in dozen different places is not the way to go.