🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #17978

Re: [PATCH nf v2 2/2] selftests: netfilter: test re-owning an already dormant table

#17978
From: Florian Westphal
Date: Tue, 17 Nov 2026 16:37
21 lines
7968 bytes
Ma Xinmeng <1564938642@qq.com> wrote:
> Add a regression test for the nftables table-adoption path.  The test
> creates a dormant PERSIST OWNER table, lets the owning nft process exit
> so the table becomes an orphan, adds a basechain while the table is still
> dormant, and re-owns the orphan.
> 
> On the buggy tree this calls nf_tables_table_disable() and unregisters a
> hook that was never registered, which triggers WARN_ONCE("hook not
> found") and taints the kernel.  The test checks the taint state so it
> fails on the unfixed kernel and passes once the commit path only
> disables a table on a real awake-to-dormant transition.

Would you mind reworking this so we can place it in the nftables.git
shell tests?

tests/shell/testcases/transactions/ would be a good place, I think.

The test would be a bit simpler since nftables run-tests.sh already
does 'tainted kernel' checks, so it only needs the 'add table', 'add
chain', 'add table' sequence.
Technical Details
Message-ID: <avyCvycm9Tvdhp60@strlen.de>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer04.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365436-linux-kernel-netdev=dewy.ru
References: <20261117161520.1031-1-1564938642@qq.com> <tencent_65062E982D816637E41FE6F24B678214DF09@qq.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer04.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365436-linux-kernel-netdev=dewy.ru
From: fw@strlen.de (Florian Westphal)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH nf v2 2/2] selftests: netfilter: test re-owning an already dormant table
Date: Tue, 17 Nov 2026 17:37:19 +0100
Organization: Usenet Network
Message-ID: <avyCvycm9Tvdhp60@strlen.de>
References: <20261117161520.1031-1-1564938642@qq.com> <tencent_65062E982D816637E41FE6F24B678214DF09@qq.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network; logging-data="2377249"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:wAGz666I2/pRJioomSqSvEqjvAc= sha256:1dLEQ1Sdh6TkPepNeHreHo/oGjmxjQ7+OSuOSNWQyF0= sha1:muft9PYWcvrvI2IGMm4tYt+PHcs= sha256:lQCf27m4f2ZTzohoHjOlDwEOJEDoM4cBsmjW78m8l/Y=
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 C3D96114FED; Tue, 17 Nov 2026 19:37:59 +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.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-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 6hXc3SQyiS4t; Tue, 17 Nov 2026 19:37:55 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365436-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 94E07114FEB; Tue, 17 Nov 2026 19:37:51 +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 C0B21448D9; Tue, 17 Nov 2026 16:37:25 +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=1794933445; b=KNMVkuWZJktIBWdHA+nwhy3N4/F7cZViO1S4LowbD192/ao0tFb7kYQxrbzIiBnUl6J/ uE98khwWB++z/7rWBb6akGhW/muGjyiOzCsufGFNzYhMg2AUwjGypzrICxi4lkMYSHJu2 eMUtX9uj4DS4H6yiYHPnPykfbhRE/eQRus5pQTEuIGTeZKEQTU8kv4LVV69BX9HCZFVSR LHQGseYKnI/DvsiRH116DB7dsg8ODremtERhRId5dfgRLxfDd4Bscobw8Epind1QpyiFz THuz8HiZ2VKyMF3N+jN23t81774Fb+rvjvZpIwifPVWcp32an/zB7407bsir+zQFNMA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794933445; 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=Dk536gR4sAld9G0Co0+KwmHfsUszZELHPoRp8d8uXgc=; b=ouuVTV2iDASxXx7qKg6K2mN3cyEmTXHiaUC6OQ0WwdnYLInkcYHtgKd+rOh8Tgr7fgF1 TLTeKohGr0Pn5E9/Qhe66Wr20sqlk/x/OS9NxV6P7bhT1Ojrpc+3dsOy3td11gNjiQcx9 NWhfhszLLvaTQby9LAPGlR6DWFyuAufUEvIyhPn2dMqNQ2BkJOUmBaW3b23bBpveW8H0G bmfSCVnPfcZ2WR9IA5mVUnihCDJzykcrhMY+lWUAisRw9EocHb4ItlgpObqdPW/8PkTCJ yni0rUC96CMWPTB47Iydvi6NPLCwMaPsT9KPSFZiIBdjYwhUuyOQnOJCtTKlqLVP92A==
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 81FB5606A33D; Tue, 17 Nov 2026 16:37:25 +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=1794933444; b=kAWFi7++uu6J+s0mGq9Pt7dsT8fhxRehmH6Opc+ZaaUPPmYR0X18TF1WPYx9gg4B4VrK zMIFiwOv43OQV/xb3nX8swI+WDNQlD2+Um84lYkKqL0YowLEsFbGmDHkF/ad/VMlx60BE /53BBPgX/TkInYON9VG+M9QZ09EEj0/R0p46XgBTGRWOro5XpFJivLdNSdnsrRece31b8 0X37vzmDNbcni+lymkH3PuXu+ceKuYBiTybDpnrcC4PVg6frRUbKaXZlxVKbzhLc1NX50 jYrqbM+pgJyMRdvY/H6ToxX3pCZc3uJj4rydLm5HtibadQejIUPNqLSuVqJPA4ko5/w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794933444; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=Dk536gR4sAld9G0Co0+KwmHfsUszZELHPoRp8d8uXgc=; b=4TrczPOhW4cEtwOlcrYJgTgLpZrFbhMaZQQnSq7DGvAESZczIO05W9c9nRDKFRT09CG6 20xJcBymQODdeOuHkSR0aTe2vXc+pNWxWP3/82V1PHWwrpKZYHbd5Q80096swmWJpLFeW exGoizBiuHvtqrlkdTwCLedym4qDHjTL5mPfpMP8mo7smrS9tqPxAL044+823GXm737xk XfRNxNIn6w94VvmN6rIE+jv31nEfo+5+N+AUV9ph//6WanVC/ZUiFRc1CXYe+NQ6QVk4I MuhDRrC7Ux9ktlOAqdbSAevZhKI8Nol3wYV7kq0TRlZyy0l7jsWLE0/qOxB6xGBq6hw==
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 F072E606A330; Tue, 17 Nov 2026 16:37:23 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F072E606A330
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 363A360342; Tue, 17 Nov 2026 17:37:21 +0100 (CET)
X-Cc: Pablo Neira Ayuso <pablo@netfilter.org>, netfilter-devel@vger.kernel.org, netdev@vger.kernel.org, Phil Sutter <phil@nwl.cc>
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: <tencent_65062E982D816637E41FE6F24B678214DF09@qq.com>
X-Received-Bytes: 7683