]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
tools/bpf: add a multithreaded stress test in bpf selftests test_lpm_map
authorYonghong Song <yhs@fb.com>
Fri, 26 Jan 2018 23:06:08 +0000 (15:06 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 27 Jan 2018 01:06:22 +0000 (17:06 -0800)
commitaf32efeede9e188fefe0af51d117c31cf281de65
treedc262d4c79d65428bb0ca56b377d732a1ff9438e
parent6dd1ec6c7a2c304e9e2e2edd9e7ccb8e8791d36a
tools/bpf: add a multithreaded stress test in bpf selftests test_lpm_map

The new test will spawn four threads, doing map update, delete, lookup
and get_next_key in parallel. It is able to reproduce the issue in the
previous commit found by syzbot and Eric Dumazet.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_lpm_map.c