Centos-kernel-stream-9/tools/lib
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
..
api Merge: Update objtool to v5.19 2022-11-09 03:13:13 -05:00
bpf libbpf: Fix uprobe symbol file offset calculation logic 2022-11-30 12:47:07 +02:00
lockdep
perf libperf evlist: Fix polling of system-wide events 2022-11-14 20:26:06 +01:00
subcmd libsubcmd: Fix OPTION_GROUP sorting 2022-10-27 15:26:51 -04:00
symbol
traceevent libtraceevent: Add __rel_loc relative location attribute support 2022-05-16 11:35:38 +02:00
argv_split.c
bitmap.c
ctype.c
find_bit.c
hweight.c
list_sort.c tools lib: Adopt list_sort() from the kernel sources 2022-05-16 11:34:55 +02:00
rbtree.c
slab.c tools: Move gfp.h and slab.h from radix-tree to lib 2022-05-13 16:40:54 -04:00
str_error_r.c
string.c
vsprintf.c
zalloc.c