]> 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)
commitacc5e2924195993f9b9bcc0909fae7afc70ecf33
treef1b5b40fe3fe7d0e218f9bc7fd1993031ffdf712
parentbff4d71297947b92a47933dc7bb548a4ef732bff
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