]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
selftests: netfilter: nft_concat_range.sh: add check for overlap detection bug
authorFlorian Westphal <fw@strlen.de>
Thu, 4 Dec 2025 11:20:36 +0000 (12:20 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 1 Jan 2026 10:31:48 +0000 (11:31 +0100)
commita675d1caa2041f05f6343fad67b04f8babf32217
treea999c754cc42538e7f6d3a05e403097e3b2bc8f3
parent7711f4bb4b360d9c0ff84db1c0ec91e385625047
selftests: netfilter: nft_concat_range.sh: add check for overlap detection bug

without 'netfilter: nft_set_pipapo: fix range overlap detection':

  reject overlapping range on add       0s         [FAIL]
Returned success for add { 1.2.3.4 . 1.2.4.1-1.2.4.2 } given set:
table inet filter {
[..]
       elements = { 1.2.3.4 . 1.2.4.1 counter packets 0 bytes 0,
                    1.2.3.0-1.2.3.4 . 1.2.4.2 counter packets 0 bytes 0 }
}

The element collides with existing ones and was not added, but kernel
returned success to userspace.

Signed-off-by: Florian Westphal <fw@strlen.de>
tools/testing/selftests/net/netfilter/nft_concat_range.sh