================================================================== BUG: KCSAN: data-race in __bpf_get_stackid / __bpf_get_stackid write to 0xffff888114cd9f74 of 4 bytes by interrupt 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_run3+0x10f/0x1d0 kernel/trace/bpf_trace.c:2300 __traceiter_kmem_cache_free+0x35/0x60 include/trace/events/kmem.h:114 __do_trace_kmem_cache_free include/trace/events/kmem.h:114 [inline] trace_kmem_cache_free include/trace/events/kmem.h:114 [inline] kmem_cache_free+0x257/0x300 mm/slub.c:4744 put_cred_rcu+0x1a4/0x210 kernel/cred.c:89 rcu_do_batch kernel/rcu/tree.c:2576 [inline] rcu_core+0x5a5/0xc00 kernel/rcu/tree.c:2832 rcu_core_si+0xd/0x20 kernel/rcu/tree.c:2849 handle_softirqs+0xb7/0x290 kernel/softirq.c:579 do_softirq+0x5d/0x90 kernel/softirq.c:480 __local_bh_enable_ip+0x70/0x80 kernel/softirq.c:407 local_bh_enable include/linux/bottom_half.h:33 [inline] xdp_test_run_batch net/bpf/test_run.c:368 [inline] bpf_test_run_xdp_live+0xe74/0xfe0 net/bpf/test_run.c:390 bpf_prog_test_run_xdp+0x4f5/0x910 net/bpf/test_run.c:1322 bpf_prog_test_run+0x22a/0x390 kernel/bpf/syscall.c:4429 __sys_bpf+0x3dc/0x790 kernel/bpf/syscall.c:5854 __do_sys_bpf kernel/bpf/syscall.c:5943 [inline] __se_sys_bpf kernel/bpf/syscall.c:5941 [inline] __x64_sys_bpf+0x41/0x50 kernel/bpf/syscall.c:5941 x64_sys_call+0x2478/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:322 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 0xffff888114cd9f74 of 4 bytes by task 12572 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_run3+0x10f/0x1d0 kernel/trace/bpf_trace.c:2300 __traceiter_kmem_cache_free+0x35/0x60 include/trace/events/kmem.h:114 __do_trace_kmem_cache_free include/trace/events/kmem.h:114 [inline] trace_kmem_cache_free include/trace/events/kmem.h:114 [inline] kmem_cache_free+0x257/0x300 mm/slub.c:4744 __io_req_caches_free+0x69/0x170 io_uring/io_uring.c:2709 io_queue_deferred+0x1e/0x220 io_uring/io_uring.c:542 io_drain_req+0x24c/0x350 io_uring/io_uring.c:1699 io_queue_sqe_fallback+0xbb/0xc0 io_uring/io_uring.c:1991 io_submit_sqe io_uring/io_uring.c:2219 [inline] io_submit_sqes+0xbad/0xfd0 io_uring/io_uring.c:2337 __do_sys_io_uring_enter io_uring/io_uring.c:3404 [inline] __se_sys_io_uring_enter+0x1c1/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: 0x0000000f -> 0x00000013 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 12572 Comm: syz.3.2260 Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================