🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13110

Re: [PATCH] netfilter: nft_dynset: reject DELETE op when set lacks ->delete

#13110
From: Pablo Neira Ayuso
Date: Mon, 09 Nov 2026 10:11
44 lines
10306 bytes
On Mon, Nov 09, 2026 at 03:34:20AM +0100, Florian Westphal wrote:
> Noah Weinberger <NoahWeinberger2003@proton.me> wrote:
> > Hello,
> > 
> > nft_dynset_init() checks that the referenced set implements ->update,
> > but for NFT_DYNSET_OP_DELETE the packet path calls set->ops->delete
> > unconditionally. Today the only set type with ->update (nft_set_hash)
> > also implements ->delete, so the call is always valid - but any future
> > set type implementing ->update without ->delete turns a rule evaluation
> > into a NULL function call.
> > 
> > Reject the DELETE op at init time when ->delete is missing, next to the
> > existing ->update check.
> > 
> > Affected version/commit: mainline fa4ad798f6f681031775266044ba1b0cf3c670bd (v7.4-rc1, 2026-11-07), net/netfilter/nft_dynset.c:98-101 (eval), 209-217 (init).
> > Longstanding asymmetry.
> > 
> > This was found during an assisted (AI-supported) static source review of
> > mainline fa4ad798f6f681031775266044ba1b0cf3c670bd (v7.4-rc1, 2026-11-07); every code path cited below was re-verified by the
> > reporter against that tree. The patch below has NOT been compiled and has
> > NOT been runtime tested, and no reproducer was produced - the triggering
> > conditions are described above instead. Please treat this as a report for
> > verification rather than a battle-tested fix.
> 
> This would have been fine 1 year ago but we no longer have resources
> and time to reproduce and verify such "fixes".
> 
> Ask your LLM for a reproducer, run it, show a minimal backtrace.
> We have LLMs too and we can use them to create enough usless and
> time-consuming tasks as-is.
> 
> I have a db of +1k reports just like this one.

Right.

The reporter has to proof this is not theoretical.

LLM might no "understand" that only sets with dynamic backends are
eligible.

And this patch points to the /dev/null tree: Submitter has to specify
if this is for nf.git (unlikely) or nf-next.git (maybe, just for
hardening).
Technical Details
Message-ID: <avGcXYd1ii96m8L0@chamomile>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359201-linux-kernel-netdev=dewy.ru
References: <5aybqcVfq3WxYdpbT0Ea6bEWamp-4x10J9FF_5La7SSXJ57a4j176x_t3zUW8Ii2r84MsPX8xx_vNashO2PRWvuO9yNsaxS8YV_4TLc-QHU=@proton.me> <avExLOsc3ZWRF5hh@strlen.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359201-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] netfilter: nft_dynset: reject DELETE op when set lacks
 ->delete
Date: Mon, 9 Nov 2026 11:11:41 +0100
Organization: Usenet Network
Message-ID: <avGcXYd1ii96m8L0@chamomile>
References: <5aybqcVfq3WxYdpbT0Ea6bEWamp-4x10J9FF_5La7SSXJ57a4j176x_t3zUW8Ii2r84MsPX8xx_vNashO2PRWvuO9yNsaxS8YV_4TLc-QHU=@proton.me>
 <avExLOsc3ZWRF5hh@strlen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="324401"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:gbA3EjU+tG7yWkZYoG/CpfB+Wtc= sha256:p9HDJokpLNNHSsiRYxW6DldxXv7y/oV5NkJeWXInOaI=
	sha1:fnZ8CgE17Y+Pwr5yWCnNFBfeHGA= sha256:2BPgs36ock154nBbAsIO7UuZ4oyO99FltHXbY1BcJ30=
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 5ECD3113784; Mon,  9 Nov 2026 13:12:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 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] 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 KxbjeKUcJtgw;
	Mon,  9 Nov 2026 13:12:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-359201-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 94CA9113781; Mon,  9 Nov 2026 13:12:10 +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 E7C07E2F48; Mon,  9 Nov 2026 10:11:54 +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=1794219114;
	b=VlkVartFcIkrH32BuxXZjw0O3k9rpXMIZlATHYlgtRuYuxjJ+0cLMJB7b0/3tYwqpF38
	 +XWCcgmrHBHklcgn+sBoVRc50AaMyWwczY7fG8EY7cawY7haIBI/3cs27D3GvNS8Ta9bU
	 eQRUu4jTifyNSe5wuOqqzUBxFW8iDuArv415aqTkt9dLXOveTmGCmuajUaYJGGjRwlX0D
	 GJ4lfchSrUsEu5cOdcrqpx8bJLgZ48WZCEeftuJwY8XfUQ3mIIho8+a4H8Efua/VRu73y
	 ho4C/fToAtUMk64FqVODCNLEt99K3VihSLImcrjf1NxLyWNHA60eGsSPtsGKPnwzaqA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794219114;
	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=6LczOBrrxXlOmcr0hIxa5uA7k5jQ+bcXpGN4rjE6NVY=;
	b=dDgPfGaqUB01xlarry5Sx2qCPHMkvYZd+dWMfsLnFCN5DM+WscaCWI72lZEQr7u3LuJL
	 Ejm49OwI/n43jN4kCUZMAyoZNDpa3dvOpy/DVq2zqoIGKrudDLRt5Kf6mB5Jtos5AA8gG
	 ZImvHdOCvk9tLNcvchUVO6Zgjp067augT1reeHPaEaDiyNtnqADS9GhBTCoO+NQ8YCCvi
	 +V+KZyOVrnTKaJ4EXBOYtoY7XYLEOxcZLmp9cjrb8lQ3poZOsvDdSv0SiBHHdsMwGDBfk
	 uETQeOOG/zmolKDc7kIYVYfwj4Kf+6DU+BBN8nc2HMgqH4csa2kIJeBdqychU7haTTA==
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="r6za/DKl";
	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 C02B2606A331;
	Mon,  9 Nov 2026 10:11:54 +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=r6za/DKl
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=1794219113;
	b=SKv6x7AwZwD4JL+KM+L9cAXaJYJMWK9rR+8dUivmx7tB1nIcMnBCVRAZ5sR5HQVNyx3y
	 NJFP/alYrRnTmK23YEhL2GxnRd6JPlARhwz5b2SMAxVYaJKJh8Zqj1lz/SJrbbImGeiIr
	 GyhnOj1o5h6Tg3yXQffkGJGLfZwhL50RnW+N0BMknm7KTlCqaBNcOqirdP9ibdKy3e21D
	 9Jy7NomDxwmSihsv+U0V1e7Bt5rwCUDWaD28hx85yrwLL/YPrAlt5jvL0AiLLnTGK6fZB
	 whmDZNjcNfrhXjB1o97xqEk0sINlj3MGPDH7hjxn619y6UOJePsglpbwRm/W4SWsqYg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794219113;
	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=6LczOBrrxXlOmcr0hIxa5uA7k5jQ+bcXpGN4rjE6NVY=;
	b=G4JZEW4Wii/rtW7YY8/W8SErd/BrE8A/7vD11AytXcBZiWI8QlbNJVE4pC118vQC6BAY
	 JHDNC9LWmLtyMeypYvExPLBr5WrfRt+ozNo3ODL73YHAdJzHYPpeb3VunkZ3MF+bJA2Z4
	 s2k5VGlwM2FG5zNEjrUOuME9lSL5RkxJJMmCs7uHLx12OpTTkjMtxOXJyeBslAlDg8kRv
	 3rCKmzbjcZk8FbMSdaYJ/Z1divLsuwLa4Iqe9L+prGUZi5deDZf7leBHuwByZemCVMdPX
	 WIW1JFv9HI/Nw5xNRTxZtmqxbGipa5PvDBEf0quT4RD83l9xMKiagtJdW6TJ1rRG0bg==
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="r6za/DKl";
	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 E98A8606A31C;
	Mon,  9 Nov 2026 10:11:51 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E98A8606A31C
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=1794219103;
	bh=6LczOBrrxXlOmcr0hIxa5uA7k5jQ+bcXpGN4rjE6NVY=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
	b=r6za/DKlZJfeVReiOxBIakEH5iQQVQsY/8UCwP8ikCxBrNty97VV1gDKhOI3gGUZX
	 biGXRwPN9b5RhQkQnniFja97drqPTCavgrlwG1OOF7VgOG9A6r5ihayy6DJRyxImar
	 MT7s0eo9VP7i1M65ZqtvTLsmaQaPO02rIceBZOzvl4ydBfjzxwUQJYL9A8HGI0Zt+0
	 TZI2F+/PVe5+okf0kLps9a22WBw9KuPcI/GXj95E3XwnFWKUbDwuU7l5uBYuGZ6eo1
	 4DI4Tevl9QimOxCbCK+dJFGf4RuZAOcNDbYw7hGpbzu/lzQru20/F8ok8zMiBqSRTs
	 LY8xK/dg1w2LA==
X-Received: from netfilter.org (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with UTF8SMTPSA id CD47F60056;
	Mon,  9 Nov 2026 11:11:43 +0100 (CET)
X-Cc: Noah Weinberger <NoahWeinberger2003@proton.me>,
	"kadlec@netfilter.org" <kadlec@netfilter.org>,
	"netfilter-devel@vger.kernel.org" <netfilter-devel@vger.kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@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: <avExLOsc3ZWRF5hh@strlen.de>