]> 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)
commiteddbe8e6521401003e37e7848ef72e75c10ee2aa
tree1191446bc251a8b6b0363e5d3ab84ce5ad903112
parente65eaded4cc4de6bf153def9dde6b25392d9a236
selftest/bpf: Add a test to check trampoline freeing logic.

Add a selftest for commit e21aa341785c ("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]