]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: add test case for interval set with timeout and aborted transaction master
authorFlorian Westphal <fw@strlen.de>
Wed, 28 Jan 2026 23:07:18 +0000 (00:07 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 29 Jan 2026 17:34:05 +0000 (18:34 +0100)
commit11ba417aa92f7420c6a1ae563949537dca1bd507
treebfea6df85afb19ba562b0d5f06c84b7f5e3d5322
parentca86f206c92704170a295b8dc7a41f6448835dde
tests: shell: add test case for interval set with timeout and aborted transaction

Add a regression test for rbtree+bsearch getting out-of-sync in
nf-next kernel.

This covers the syzkaller reproducer from
https://syzkaller.appspot.com/bug?extid=d417922a3e7935517ef6
which triggers abort with earlier gc at insert time and additional corner
case where transaction passes without recording a relevant change in the set
(i.e. no call to either abort or commit).

This test passes even on buggy kernels unless KASAN is enabled.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/sets/dumps/rbtree_timeout_no_commit.json-nft [new file with mode: 0644]
tests/shell/testcases/sets/dumps/rbtree_timeout_no_commit.nft [new file with mode: 0644]
tests/shell/testcases/sets/rbtree_timeout_no_commit [new file with mode: 0755]