Article View: linux.kernel.netdev
Article #7114Re: [PATCH nf] netfilter: nft_set_pipapo: skip transaction elements during GC
From: Florian Westphal
Date: Sat, 24 Oct 2026 22:23
Date: Sat, 24 Oct 2026 22:23
15 lines
7704 bytes
7704 bytes
Joas Antonio dos Santos <joasantonio108@gmail.com> wrote: > Since nft_set_commit_update() runs set commit callbacks before processing > NEWSETELEM transactions, pipapo_gc_scan() can observe elements added by > the transaction being committed: nft_pipapo_commit() calls > pipapo_gc_scan() on the clone, which already holds the freshly inserted > (not yet activated) elements. > > pipapo_gc_scan() selects elements to collect using only > __nft_set_elem_expired(), without checking the element's transaction > state. A new element that is already expired at commit time (for > example a short expiration whose delta elapses during a large batch Please ask your LLM to explain how a newly added element can be both new and expired at the same time, then fix that.
Technical Details
Message-ID:
<at0vzdlVTF8XAzHj@strlen.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351451-linux-kernel-netdev=dewy.ruReferences:
<179287943591.17355.17353179557993329094@gmail.com>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-351451-linux-kernel-netdev=dewy.ru From: fw@strlen.de (Florian Westphal) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH nf] netfilter: nft_set_pipapo: skip transaction elements during GC Date: Sun, 25 Oct 2026 00:23:09 +0200 Organization: Usenet Network Message-ID: <at0vzdlVTF8XAzHj@strlen.de> References: <179287943591.17355.17353179557993329094@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="877636"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:1PyfaydjqCGNA18vGyEnDrYybYc= sha256:q6eUfxKizLU8vM6xuIoOYNzy0P3cvJL69hj5bxmPLi8= sha1:ZwQV6mRXu01z3QERReAyvXnK7Us= sha256:XpVYauM57Rgr0UmFf5onMx8hLI1JTx4p/yWSQ+tXN40= 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 DC2F01116B4; Sun, 25 Oct 2026 01:24:11 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.95 X-Spam-Status: No, score=-2.95 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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-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 TVSQ0mGZ4Oj5; Sun, 25 Oct 2026 01:24:08 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-351451-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=strlen.de X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id E73D5111678; Sun, 25 Oct 2026 01:24:01 +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 DB48532A84; Sat, 24 Oct 2026 22:23:30 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1792880610; b=G0jZYxzg5f7mGP0Pxukew/SnKlfOkvs0Yt7jgVMHo4Sbf/9az+cEoAcQBJM3euwwLzUQ BfzmW5YOct9Yy3UH76h3uc6HrG5WC+u/iApWLLNEcfDjbOBuTHmIoigBBPBtvE8W6aL6N fV5wulE77A3H7mmUG4A9Gvnhl1xLFqwLFtCZAtYKIn3L3n6N23YJWE4w11pXYECENQQ9Z unNjQVeLpHin9CtH45qGPNJXEdv3uy1Tl+yjxxemm3nAZeqdUydA1yVvBJWjyELMS1pFh igHJwj4nRR7nr+N/sPoURalmR9bZoR7l+oVHWVSrnGC1Uw4LySZkMGxq22YiStqUz/Q== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792880610; h=X-Original-To:Received:DMARC-Filter: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=fEpek5FX8wNTYU//B1YNrG48vGFcw694wmGUQhenV1A=; b=nu+ba96Yi4XyoSt24YDe0Gd1gb+ZUUJ/8m6VgJAHC+W0K97hhH4gHavt1MyZ7wAN2H3f x6Z/sEyhvpGqfrS+opB9HGmiojD8MiYNoxD2X/Ktqh0J1cDWNcIqbmZ6bGLpXWPIZ1dMT 5qfFA1cbacrIRG4ML5bOLrsTNV7qI4hqy+zWzQhdPbTcysikKonjcTHsQkOEirqwYYJiB nu+rkFsPu8/CVg0oC4OmGoREritB+SY9gwFImwxy2apdN+5Otqv6ejEoXQ1wJMjMW5oxS 9siP3QfsN4aU9rRhFe2Ue1VsiS61vu1nx3evipqDZPBcOGBEsoDMAwK9WFZC3X6twKw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; arc=pass header.oldest-pass=0 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 81CAF606A324; Sat, 24 Oct 2026 22:23:30 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.216.245.30 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792880600; b=0lqvCHm/NbbqxSShkpsAY4MnfGOvJzsWdlWA60gGxBpN18XrdiNk+tO5VgifW07emP5z ITaV1LjpXq700dr90KjwImOcNAlnsFt4wK01v9SwTfvLp2L2q+LC4UzWcjxP4UAdKRdH4 Dk8XUYSyK0ifXea81ec/PpEpAdQFSWt5TfonLpki2vaHX9cCDU2RTKcrSOJWDLXG1rLaK jylT5xTCKQUCdiN2SBgX8xm9JQLh/ubYqdqJnrG+JL/oBzht9cI9t3X/f4ynx+yMz8FNS TveFxlVQm4kLSMXdZIjHiGX694RVjd2WE/GNZ0es4TOQeey1ELyY88N5yWq4OF0UgvQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792880600; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=fEpek5FX8wNTYU//B1YNrG48vGFcw694wmGUQhenV1A=; b=z6ZU5PCK7iGCbKZlBRXljSt/K9UHGPPh/I2VQMb43UMwHsyaI9xqTYx2pcdrc6gT/dDh 2x7FkUeQI2aiUz0LEKNmdBZUnnSWb9NMxcXO32+gxI24EPjujL2fc1jne60Bpt3vlFlBf H0Yoz1Ti/cHyrxgC0tQECmG5p1ItWrOAobkOKkR8W9qLItInynN4lw718+wI7RqJ0gP0X qeo4FqiTq0xyrNJmHsxXrSHjbK1ebZpTLGqHDFbr56u8WZbKHa8tinEfhYB6VLwHivFAo XjlE1fs7xSThObWggeF2dYA/PkYb+jUUp0ZgZ99rHyQ0z/yZJF6tKY5+LrSwtDAzTBQ== X-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 X-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 579F5606A31A; Sat, 24 Oct 2026 22:23:18 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 579F5606A31A X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=strlen.de X-Received: by Chamillionaire.breakpoint.cc (Postfix, from userid 1003) id 1937360AF0; Sun, 25 Oct 2026 00:23:10 +0200 (CEST) X-Cc: Pablo Neira Ayuso <pablo@netfilter.org>, Phil Sutter <phil@nwl.cc>, Weiming Shi <bestswngs@gmail.com>, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@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: <179287943591.17355.17353179557993329094@gmail.com>