]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: add test case for basechain abort path master
authorFlorian Westphal <fw@strlen.de>
Wed, 25 Feb 2026 11:05:40 +0000 (12:05 +0100)
committerFlorian Westphal <fw@strlen.de>
Sun, 12 Apr 2026 17:28:27 +0000 (19:28 +0200)
commit41a7b7e3bcf634ad5bda7a8f8e633443d920fdfc
tree9e76fe7e87a1cf6271ac66b134537124ef5b4973
parent661b8395401295d057957e08e724bb449f412a8c
tests: shell: add test case for basechain abort path

Add coverage for failing basechain add.

'inet' has to register both ipv6 and ipv4 rules.
If all ipv6 slots are already taken, the chain add will fail.

As it was already exposed (albeit only for a very short time) to
dumpers and packet path, it must not be free'd before an RCU
grace period has elapsed.  Check for this.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/transactions/basechain_add_failure [new file with mode: 0755]
tests/shell/testcases/transactions/dumps/basechain_add_failure.nodump [new file with mode: 0644]