Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Florian Westphal
Tue, 17 Nov 2026 16:37
Re: [PATCH nf v2 2/2] selftests: netfilter: test re-owning an already dormant table
Author: Florian Westphal
Date: Tue, 17 Nov 2026 16:37
Date: Tue, 17 Nov 2026 16:37
21 lines
7968 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads