]> git.baikalelectronics.ru Git - kernel.git/commit
selftest/bpf: Add a test to check trampoline freeing logic.
authorAlexei Starovoitov <ast@kernel.org>
Thu, 18 Mar 2021 00:45:23 +0000 (17:45 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 18 Mar 2021 16:13:42 +0000 (17:13 +0100)
commit8d1989b87bc9314960a07878dc7aa479ded39d2f
tree1191446bc251a8b6b0363e5d3ab84ce5ad903112
parent0f170a66fffe734f3f387dbc0e3c304baedc73e0
selftest/bpf: Add a test to check trampoline freeing logic.

Add a selftest for commit f7fede7bce91 ("bpf: Fix fexit trampoline.")
to make sure that attaching fexit prog to a sleeping kernel function
will trigger appropriate trampoline and program destruction.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210318004523.55908-1-alexei.starovoitov@gmail.com
tools/testing/selftests/bpf/prog_tests/fexit_sleep.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/fexit_sleep.c [new file with mode: 0644]