milos-linux/tools/lib/bpf
KP Singh 7dd62566e0 libbpf: fix off-by-one in emit_signature_match jump offset
The offset for the cleanup-label jump is computed before the MOV R7
instruction is emitted, but the JMP lands after it. Account for the
extra insn in the offset calculation (-2 instead of -1). Drop the
redundant self-loop in the else branch; gen->error = -ERANGE already
marks the generation as failed.

Fixes: fb2b0e2901 ("libbpf: Update light skeleton for signing")
Signed-off-by: KP Singh <kpsingh@kernel.org>
Link: https://lore.kernel.org/r/20260522215337.662271-2-kpsingh@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2026-05-23 07:49:22 -07:00
..
.gitignore
bpf.c libbpf: add fsession support 2026-01-24 18:49:36 -08:00
bpf.h libbpf: Add BPF_F_CPU and BPF_F_ALL_CPUS flags support for percpu maps 2026-01-06 20:48:32 -08:00
bpf_core_read.h
bpf_endian.h
bpf_gen_internal.h
bpf_helpers.h libbpf: Remove extern declaration of bpf_stream_vprintk() 2026-02-18 14:58:47 -08:00
bpf_prog_linfo.c
bpf_tracing.h
btf.c libbpf: BTF validation can use layout for unknown kinds 2026-03-26 13:53:56 -07:00
btf.h libbpf: Add layout encoding support 2026-03-26 13:53:56 -07:00
btf_dump.c libbpf: Fix OOB read in btf_dump_get_bitfield_value 2026-01-09 15:54:31 -08:00
btf_iter.c
btf_relocate.c
Build
elf.c
features.c libbpf: Support sanitization of BTF layout for older kernels 2026-03-26 13:53:56 -07:00
gen_loader.c libbpf: fix off-by-one in emit_signature_match jump offset 2026-05-23 07:49:22 -07:00
hashmap.c
hashmap.h
libbpf.c libbpf: Prevent double close and leak of btf objects 2026-04-16 16:00:10 -07:00
libbpf.h libbpf: Clarify raw-address single kprobe attach behavior 2026-04-02 13:23:19 -07:00
libbpf.map libbpf: Fix BTF handling in bpf_program__clone() 2026-04-02 13:02:46 -07:00
libbpf.pc.template
libbpf_common.h
libbpf_internal.h libbpf: Allow use of feature cache for non-token cases 2026-04-10 12:34:36 -07:00
libbpf_legacy.h
libbpf_probes.c libbpf: Support sanitization of BTF layout for older kernels 2026-03-26 13:53:56 -07:00
libbpf_utils.c
libbpf_version.h libbpf: Start v1.8 development cycle 2026-03-16 14:15:15 -07:00
linker.c libbpf: Fix invalid write loop logic in bpf_linker__add_buf() 2026-02-13 14:14:27 -08:00
Makefile
netlink.c bpftool: Fix truncated netlink dumps 2026-02-17 16:54:03 -08:00
nlattr.c
nlattr.h
relo_core.c bpf: reject negative CO-RE accessor indices in bpf_core_parse_spec() 2026-04-07 08:27:55 -07:00
relo_core.h
ringbuf.c
skel_internal.h
strset.c
strset.h
usdt.bpf.h
usdt.c libbpf: Add support to detect nop,nop5 instructions combo for usdt probe 2026-03-03 08:39:22 -08:00
zip.c
zip.h