diff options
| author | Jiri Olsa <[email protected]> | 2022-09-26 15:33:40 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-09-27 03:30:40 +0000 |
| commit | 738c345b74b8d11edd01b6cee5628c6b8368d8ea (patch) | |
| tree | 4257dcd090e4aa3d9c55551abd6762aa9fdff21a /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | bpf: Return value in kprobe get_func_ip only for entry address (diff) | |
| download | kernel-738c345b74b8d11edd01b6cee5628c6b8368d8ea.tar.gz kernel-738c345b74b8d11edd01b6cee5628c6b8368d8ea.zip | |
selftests/bpf: Fix get_func_ip offset test for CONFIG_X86_KERNEL_IBT
With CONFIG_X86_KERNEL_IBT enabled the test for kprobe with offset
won't work because of the extra endbr instruction.
As suggested by Andrii adding CONFIG_X86_KERNEL_IBT detection
and using appropriate offset value based on that.
Also removing test7 program, because it does the same as test6.
Suggested-by: Andrii Nakryiko <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions
