summaryrefslogtreecommitdiff
path: root/kernel/bpf/percpu_freelist.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2022-06-06 15:01:43 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2022-06-09 14:09:41 +0200
commitfe92833524e368e59bba9c57e00f7359f133667f (patch)
tree99190a8f63b41fdce6cb0224dd1b36b5dcc9a5bc /kernel/bpf/percpu_freelist.c
parent492f99e4190a4574a4e015507e0466ab6d8d5d88 (diff)
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
Diffstat (limited to 'kernel/bpf/percpu_freelist.c')
0 files changed, 0 insertions, 0 deletions