From e5edac01aab012edddf6309d876b9bf2d921aead Mon Sep 17 00:00:00 2001 From: Yakir Oren Date: Thu, 5 Mar 2026 15:23:59 +0200 Subject: [PATCH] fix iouring CO-RE relocation for kernel 6.8+ Signed-off-by: Yakir Oren --- pkg/ebpf/gadgets/iouring_new/program.bpf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/ebpf/gadgets/iouring_new/program.bpf.c b/pkg/ebpf/gadgets/iouring_new/program.bpf.c index 4ae73eeb4..7e2a89598 100644 --- a/pkg/ebpf/gadgets/iouring_new/program.bpf.c +++ b/pkg/ebpf/gadgets/iouring_new/program.bpf.c @@ -5,6 +5,7 @@ // Check https://man7.org/linux/man-pages/man7/bpf-helpers.7.html to learn // more about different available helpers #include +#include // Inspektor Gadget buffer #include @@ -45,8 +46,8 @@ int handle_submit_req(struct trace_event_raw_io_uring_submit_req *ctx) return 0; gadget_process_populate(&event->proc); - event->opcode = ctx->opcode; - event->flags = ctx->flags; + event->opcode = BPF_CORE_READ(ctx, opcode); + event->flags = BPF_CORE_READ(ctx, flags); event->timestamp_raw = bpf_ktime_get_boot_ns();