From 02724cfd0702c4102138e62c3ae7d2721c7b190e Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Wed, 8 May 2024 15:23:40 -0700 Subject: [PATCH] sync: latest libbpf changes from kernel Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 0737df6de94661ae55fd3343ce9abec32c687e62 Checkpoint bpf-next commit: 009367099eb61a4fc2af44d4eb06b6b4de7de6db Baseline bpf commit: 3e9bc0472b910d4115e16e9c2d684c7757cb6c60 Checkpoint bpf commit: 3e9bc0472b910d4115e16e9c2d684c7757cb6c60 Andrii Nakryiko (6): libbpf: fix potential overflow in ring__consume_n() libbpf: fix ring_buffer__consume_n() return result logic libbpf: remove unnecessary struct_ops prog validity check libbpf: handle yet another corner case of nulling out struct_ops program libbpf: fix libbpf_strerror_r() handling unknown errors libbpf: improve early detection of doomed-to-fail BPF program loading Jiri Olsa (2): libbpf: Fix error message in attach_kprobe_session libbpf: Fix error message in attach_kprobe_multi Jose E. Marchesi (3): libbpf: Fix bpf_ksym_exists() in GCC libbpf: Avoid casts from pointers to enums in bpf_tracing.h bpf: Avoid uninitialized value in BPF_CORE_READ_BITFIELD src/bpf_core_read.h | 1 + src/bpf_helpers.h | 17 +++++++++-- src/bpf_tracing.h | 70 ++++++++++++++++++++++----------------------- src/libbpf.c | 42 ++++++++++++++++++--------- src/ringbuf.c | 4 +-- src/str_error.c | 16 +++++++++-- src/usdt.bpf.h | 24 ++++++++-------- 7 files changed, 106 insertions(+), 68 deletions(-) Signed-off-by: Andrii Nakryiko --- CHECKPOINT-COMMIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHECKPOINT-COMMIT b/CHECKPOINT-COMMIT index 56ad654..0e3fb52 100644 --- a/CHECKPOINT-COMMIT +++ b/CHECKPOINT-COMMIT @@ -1 +1 @@ -0737df6de94661ae55fd3343ce9abec32c687e62 +009367099eb61a4fc2af44d4eb06b6b4de7de6db