diff options
| author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-10-19 16:48:50 +0200 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-10-20 00:15:54 +0000 |
| commit | 25a2e54999b0b93e8ecebb5863e3ecbcafb0ed18 (patch) | |
| tree | a3469e8e8c787fbe0df8357b721fe7fc4beee4fa /tools/perf/scripts/python/stackcollapse.py | |
| parent | 19a17b5b2b01f6b5ba8f8d493629c759f90906d5 (diff) | |
selftests/bpf: Test that a signed program with CO-RE relocations is refused
Load a two insn program with a junk signature and one CO-RE relocation
record, and check that the kernel refuses it with -EACCES and the message
naming the relocations, before it examines the signature. Without the
check the same load gets as far as the signature and fails on it with
-EBADMSG.
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://patch.msgid.link/20261019144851.4052056-3-memxor@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
