OSDN Git Service

selftests/bpf: Test that module can't be unloaded with attached trampoline
authorJiri Olsa <jolsa@kernel.org>
Wed, 14 Apr 2021 19:51:46 +0000 (21:51 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 26 Apr 2021 04:09:02 +0000 (21:09 -0700)
commita1c05c3b09e0a92b26b94650837bf06c664beb1b
tree40d475017d927a034d14f87c9fe4f2434b24c8c2
parentcede72ad367a105852e814ef91717aac4383b853
selftests/bpf: Test that module can't be unloaded with attached trampoline

Adding test to verify that once we attach module's trampoline,
the module can't be unloaded.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210414195147.1624932-7-jolsa@kernel.org
tools/testing/selftests/bpf/prog_tests/module_attach.c