================================================================== BUG: KCSAN: data-race in __bpf_get_stackid / __bpf_get_stackid write to 0xffff88811aaf430c of 4 bytes by task 24084 on cpu 1: __bpf_get_stackid+0x77a/0x800 kernel/bpf/stackmap.c:292 ____bpf_get_stackid kernel/bpf/stackmap.c:324 [inline] bpf_get_stackid+0xee/0x120 kernel/bpf/stackmap.c:300 ____bpf_get_stackid_raw_tp kernel/trace/bpf_trace.c:1811 [inline] bpf_get_stackid_raw_tp+0xf6/0x120 kernel/trace/bpf_trace.c:1800 bpf_prog_e6fc920cfeff8120+0x2a/0x32 bpf_dispatcher_nop_func include/linux/bpf.h:1322 [inline] __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run include/linux/filter.h:725 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2258 [inline] bpf_trace_run2+0x107/0x1c0 kernel/trace/bpf_trace.c:2299 __traceiter_kfree+0x2b/0x50 include/trace/events/kmem.h:94 __do_trace_kfree include/trace/events/kmem.h:94 [inline] trace_kfree include/trace/events/kmem.h:94 [inline] kfree+0x27b/0x320 mm/slub.c:4829 __do_sys_mount fs/namespace.c:4454 [inline] __se_sys_mount+0x2a9/0x2e0 fs/namespace.c:4427 __x64_sys_mount+0x67/0x80 fs/namespace.c:4427 x64_sys_call+0xd36/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff88811aaf430c of 4 bytes by task 24076 on cpu 0: __bpf_get_stackid+0x33a/0x800 kernel/bpf/stackmap.c:278 ____bpf_get_stackid kernel/bpf/stackmap.c:324 [inline] bpf_get_stackid+0xee/0x120 kernel/bpf/stackmap.c:300 ____bpf_get_stackid_raw_tp kernel/trace/bpf_trace.c:1811 [inline] bpf_get_stackid_raw_tp+0xf6/0x120 kernel/trace/bpf_trace.c:1800 bpf_prog_e6fc920cfeff8120+0x2a/0x32 bpf_dispatcher_nop_func include/linux/bpf.h:1322 [inline] __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run include/linux/filter.h:725 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2258 [inline] bpf_trace_run2+0x107/0x1c0 kernel/trace/bpf_trace.c:2299 __traceiter_kfree+0x2b/0x50 include/trace/events/kmem.h:94 __do_trace_kfree include/trace/events/kmem.h:94 [inline] trace_kfree include/trace/events/kmem.h:94 [inline] kfree+0x27b/0x320 mm/slub.c:4829 io_queue_deferred+0x1d0/0x220 io_uring/io_uring.c:555 __io_submit_flush_completions+0x9f5/0xa00 io_uring/io_uring.c:1488 io_submit_flush_completions io_uring/io_uring.h:163 [inline] ctx_flush_and_put+0x9b/0x150 io_uring/io_uring.c:1039 io_handle_tw_list+0x1a9/0x1c0 io_uring/io_uring.c:1079 tctx_task_work_run+0x6d/0x1a0 io_uring/io_uring.c:1132 tctx_task_work+0x3f/0x80 io_uring/io_uring.c:1150 task_work_run+0x12e/0x1a0 kernel/task_work.c:227 io_run_task_work+0x1c7/0x250 io_uring/io_uring.h:375 io_cqring_wait io_uring/io_uring.c:2547 [inline] __do_sys_io_uring_enter io_uring/io_uring.c:3443 [inline] __se_sys_io_uring_enter+0xb0d/0x1b70 io_uring/io_uring.c:3338 __x64_sys_io_uring_enter+0x78/0x90 io_uring/io_uring.c:3338 x64_sys_call+0x28c8/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:427 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000012 -> 0x0000000a Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 24076 Comm: syz.3.5021 Not tainted 6.16.0-syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================