]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: netfilter: nft_queue.sh: add test for disappearing listener
authorFlorian Westphal <fw@strlen.de>
Tue, 25 Jun 2024 19:07:44 +0000 (21:07 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 28 Jun 2024 15:57:43 +0000 (17:57 +0200)
commit742ad979f500c7707258b368c413c7215af09ed5
tree9382d18d1acd0d1114b4310664ce02b9ea56e877
parente29630247be24c3987e2b048f8e152771b32d38b
selftests: netfilter: nft_queue.sh: add test for disappearing listener

If userspace program exits while the queue its subscribed to has packets
those need to be discarded.

commit dc21c6cc3d69 ("netfilter: nfnetlink_queue: acquire rcu_read_lock()
in instance_destroy_rcu()") fixed a (harmless) rcu splat that could be
triggered in this case.

Add a test case to cover this.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/net/netfilter/nft_queue.sh