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)
commitad8848535e97f4a5374fc68f7a5d16e2565940cc
treef1b5b40fe3fe7d0e218f9bc7fd1993031ffdf712
parent5e0b0a4c52d30bb09659446f40b77a692361600d
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