diff options
| author | Luis Vieira <luisflavieira@gmail.com> | 2026-09-29 22:56:12 -0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-09-30 09:45:19 +0000 |
| commit | acff58e305175df35985082b0e79103a2497f702 (patch) | |
| tree | 2abba0ce6210be02c2e5981366975a6b90b17307 /include/linux/timerqueue.h | |
| parent | 99c3e74f8d9695b57bda22a8f2e0ad220dcb78bc (diff) | |
| download | linux-next-acff58e305175df35985082b0e79103a2497f702.tar.gz linux-next-acff58e305175df35985082b0e79103a2497f702.zip | |
libbpf: Fix cleanup on invalid CO-RE relocation offsets
bpf_object__relocate_core() allocates a CO-RE candidate cache before
processing relocation records. Two instruction offset validation
failures return -EINVAL directly instead of going through the common
cleanup path.
These checks were moved into bpf_object__relocate_core() when
bpf_core_apply_relo() was split, preserving direct returns that were
safe in the previous helper but now bypass cleanup.
Route both failures through the out path so the candidate cache and
target BTF override are released.
Signed-off-by: Luis Vieira <luisflavieira@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20260929-libbpf-core-relo-cleanup-v1-1-c9cd0b5775a9@gmail.com
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
