]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: netfilter: add nfqueue TCP_NEW_SYN_RECV socket race test
authorFlorian Westphal <fw@strlen.de>
Fri, 25 Feb 2022 11:01:23 +0000 (12:01 +0100)
committerFlorian Westphal <fw@strlen.de>
Tue, 1 Mar 2022 10:48:58 +0000 (11:48 +0100)
commit2e78855d311c401083df9776aa450d32d716e83e
tree37255e2bd8e9ed9018cf2d984ca77b23687e0af7
parent747670fd9a2d1b7774030dba65ca022ba442ce71
selftests: netfilter: add nfqueue TCP_NEW_SYN_RECV socket race test

causes:
BUG: KASAN: slab-out-of-bounds in sk_free+0x25/0x80
Write of size 4 at addr ffff888106df0284 by task nf-queue/1459
 sk_free+0x25/0x80
 nf_queue_entry_release_refs+0x143/0x1a0
 nf_reinject+0x233/0x770

... without 'netfilter: nf_queue: don't assume sk is full socket'.

Signed-off-by: Florian Westphal <fw@strlen.de>
tools/testing/selftests/netfilter/.gitignore
tools/testing/selftests/netfilter/Makefile
tools/testing/selftests/netfilter/connect_close.c [new file with mode: 0644]
tools/testing/selftests/netfilter/nft_queue.sh