Centos-kernel-stream-9/tools/lib/bpf
Yauheni Kaliuta 6193c840a6 libbpf: Fix uprobe symbol file offset calculation logic
Bugzilla: https://bugzilla.redhat.com/2120968

commit fe92833524e368e59bba9c57e00f7359f133667f
Author: Andrii Nakryiko <andrii@kernel.org>
Date:   Mon Jun 6 15:01:43 2022 -0700

    libbpf: Fix uprobe symbol file offset calculation logic
    
    Fix libbpf's bpf_program__attach_uprobe() logic of determining
    function's *file offset* (which is what kernel is actually expecting)
    when attaching uprobe/uretprobe by function name. Previously calculation
    was determining virtual address offset relative to base load address,
    which (offset) is not always the same as file offset (though very
    frequently it is which is why this went unnoticed for a while).
    
    Fixes: 433966e3ae04 ("libbpf: Support function name-based attach uprobes")
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
    Cc: Riham Selim <rihams@fb.com>
    Cc: Alan Maguire <alan.maguire@oracle.com>
    Link: https://lore.kernel.org/bpf/20220606220143.3796908-1-andrii@kernel.org

Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
2022-11-30 12:47:07 +02:00
..
.gitignore libbpf: Make libbpf_version.h non-auto-generated 2022-06-03 17:15:38 +03:00
Build libbpf: Wire up USDT API and bpf_link integration 2022-11-28 16:48:56 +02:00
Makefile libbpf: fix up global symbol counting logic 2022-11-30 12:47:05 +02:00
bpf.c libbpf: remove bpf_create_map*() APIs 2022-11-30 12:47:05 +02:00
bpf.h libbpf: remove bpf_create_map*() APIs 2022-11-30 12:47:05 +02:00
bpf_core_read.h libbpf: Complete field-based CO-RE helpers with field offset helper 2022-11-30 12:47:01 +02:00
bpf_endian.h
bpf_gen_internal.h libbpf: Support init of inner maps in light skeleton. 2022-08-24 12:53:43 +02:00
bpf_helpers.h libbpf: Provide barrier() and barrier_var() in bpf_helpers.h 2022-11-30 12:47:02 +02:00
bpf_prog_linfo.c
bpf_tracing.h libbpf: Add BPF_KPROBE_SYSCALL macro 2022-10-25 14:57:49 +02:00
btf.c libbpf: Avoid joining .BTF.ext data with BPF programs by section name 2022-11-30 12:47:00 +02:00
btf.h libbpf: Deprecate forgotten btf__get_map_kv_tids() 2022-10-25 14:57:46 +02:00
btf_dump.c libbpf: Skip forward declaration when counting duplicated type names 2022-10-25 14:57:52 +02:00
gen_loader.c libbpf: Prepare light skeleton for the kernel. 2022-10-25 14:57:49 +02:00
hashmap.c libbpf: Use IS_ERR_OR_NULL() in hashmap__free() 2022-10-25 14:57:38 +02:00
hashmap.h
libbpf.c libbpf: Fix uprobe symbol file offset calculation logic 2022-11-30 12:47:07 +02:00
libbpf.h libbpf: Add safer high-level wrappers for map operations 2022-11-30 12:47:04 +02:00
libbpf.map libbpf: start 1.0 development cycle 2022-11-30 12:47:05 +02:00
libbpf.pc.template
libbpf_common.h libbpf: Deprecate bpf_prog_load_xattr() API 2022-08-24 12:53:44 +02:00
libbpf_errno.c
libbpf_internal.h libbpf: Fix is_pow_of_2 2022-11-30 12:47:07 +02:00
libbpf_legacy.h libbpf: .text routines are subprograms in strict mode 2022-10-25 14:58:05 +02:00
libbpf_probes.c libbpf: Initialize err in probe_map_create 2022-08-24 12:53:58 +02:00
libbpf_version.h libbpf: start 1.0 development cycle 2022-11-30 12:47:05 +02:00
linker.c libbpf: Fix is_pow_of_2 2022-11-30 12:47:07 +02:00
netlink.c libbpf: streamline low-level XDP APIs 2022-10-25 14:57:41 +02:00
nlattr.c
nlattr.h
relo_core.c libbpf: Fix up verifier log for unguarded failed CO-RE relos 2022-11-30 12:47:00 +02:00
relo_core.h libbpf: Fix up verifier log for unguarded failed CO-RE relos 2022-11-30 12:47:00 +02:00
ringbuf.c
skel_internal.h bpf: Disallow bpf programs call prog_run command. 2022-10-25 14:58:10 +02:00
str_error.c
str_error.h
strset.c
strset.h
usdt.bpf.h libbpf: Use weak hidden modifier for USDT BPF-side API functions 2022-11-28 16:48:58 +02:00
usdt.c libbpf: Support riscv USDT argument parsing logic 2022-11-28 16:52:10 +02:00
xsk.c libbpf: Fix array_size.cocci warning 2022-10-25 14:57:58 +02:00
xsk.h libbpf: Deprecate AF_XDP support 2022-06-03 17:23:50 +03:00