summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/epilogue_exit.c
AgeCommit message (Collapse)AuthorFilesLines
2024-08-30selftests/bpf: Test epilogue patching when the main prog has multiple BPF_EXITMartin KaFai Lau1-0/+82
This patch tests the epilogue patching when the main prog has multiple BPF_EXIT. The verifier should have patched the 2nd (and later) BPF_EXIT with a BPF_JA that goes back to the earlier patched epilogue instructions. Acked-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://lore.kernel.org/r/20240829210833.388152-10-martin.lau@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>