diff options
| author | Anton Protopopov <a.s.protopopov@gmail.com> | 2026-01-11 15:30:45 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-01-13 19:35:47 -0800 |
| commit | e3bd7bdf5ffe49d8381e42843f6e98cd0c78a1e8 (patch) | |
| tree | 879cf86ba30051c1c3ee97e00bede9aa9896e168 /tools/include/uapi/linux | |
| parent | bbdbed193bcf57f1e9c0d9d58c3ad3350bfd0bd1 (diff) | |
bpf: Return proper address for non-zero offsets in insn array
The map_direct_value_addr() function of the instruction
array map incorrectly adds offset to the resulting address.
This is a bug, because later the resolve_pseudo_ldimm64()
function adds the offset. Fix it. Corresponding selftests
are added in a consequent commit.
Fixes: 493d9e0d6083 ("bpf, x86: add support for indirect jumps")
Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/r/20260111153047.8388-2-a.s.protopopov@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
