]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Add uretprobe syscall call from user space test
authorJiri Olsa <jolsa@kernel.org>
Tue, 11 Jun 2024 23:44:28 +0000 (08:44 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 11 Jun 2024 23:44:28 +0000 (08:44 +0900)
commit9e7f74e64ae58688a33a6445e4f9a4e291d0824f
tree2f3da3b7727acdc41be9632f2513ac27af1ed877
parentf42a58ffb8bb54e66bf9668a6be91477828c0c1b
selftests/bpf: Add uretprobe syscall call from user space test

Adding test to verify that when called from outside of the
trampoline provided by kernel, the uretprobe syscall will cause
calling process to receive SIGILL signal and the attached bpf
program is not executed.

Link: https://lore.kernel.org/all/20240611112158.40795-8-jolsa@kernel.org/
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
tools/testing/selftests/bpf/progs/uprobe_syscall_executed.c [new file with mode: 0644]