aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
diff options
context:
space:
mode:
authorViktor Malik <[email protected]>2023-03-10 07:41:00 +0000
committerAlexei Starovoitov <[email protected]>2023-03-16 01:38:30 +0000
commitaa3d65de4b9004d799f97700751a86d3ebd7d5f9 (patch)
treeec9df74470d9a94d7cd6baaa2bd6a47453081879 /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
parentbpf: Fix attaching fentry/fexit/fmod_ret/lsm to modules (diff)
downloadkernel-aa3d65de4b9004d799f97700751a86d3ebd7d5f9.tar.gz
kernel-aa3d65de4b9004d799f97700751a86d3ebd7d5f9.zip
bpf/selftests: Test fentry attachment to shadowed functions
Adds a new test that tries to attach a program to fentry of two functions of the same name, one located in vmlinux and the other in bpf_testmod. To avoid conflicts with existing tests, a new function "bpf_fentry_shadow_test" was created both in vmlinux and in bpf_testmod. The previous commit fixed a bug which caused this test to fail. The verifier would always use the vmlinux function's address as the target trampoline address, hence trying to create two trampolines for a single address, which is forbidden. The test (similarly to other fentry/fexit tests) is not working on arm64 at the moment. Signed-off-by: Viktor Malik <[email protected]> Acked-by: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/r/5fe2f364190b6f79b085066ed7c5989c5bc475fa.1678432753.git.vmalik@redhat.com Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions