]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Shuffle cookies symbols in kprobe multi test
authorJiri Olsa <jolsa@kernel.org>
Wed, 15 Jun 2022 11:21:15 +0000 (13:21 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 17 Jun 2022 02:42:21 +0000 (19:42 -0700)
commit61f0551e5e9e4ec79b6a9d46e48408ce1ee53715
treef1b5b40fe3fe7d0e218f9bc7fd1993031ffdf712
parent8310f5cb9e3ad491cd8016e759e894f0fd138b69
selftests/bpf: Shuffle cookies symbols in kprobe multi test

There's a kernel bug that causes cookies to be misplaced and
the reason we did not catch this with this test is that we
provide bpf_fentry_test* functions already sorted by name.

Shuffling function bpf_fentry_test2 deeper in the list and
keeping the current cookie values as before will trigger
the bug.

The kernel fix is coming in following changes.

Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220615112118.497303-2-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/bpf_cookie.c
tools/testing/selftests/bpf/progs/kprobe_multi.c