================================================================== BUG: KCSAN: data-race in __bpf_get_stackid / __bpf_get_stackid write to 0xffffc9000fc052c0 of 4 bytes by task 29 on cpu 1: __bpf_get_stackid+0x76b/0x800 kernel/bpf/stackmap.c:291 ____bpf_get_stackid kernel/bpf/stackmap.c:324 [inline] bpf_get_stackid+0xe9/0x120 kernel/bpf/stackmap.c:300 ____bpf_get_stackid_raw_tp kernel/trace/bpf_trace.c:1628 [inline] bpf_get_stackid_raw_tp+0xf6/0x120 kernel/trace/bpf_trace.c:1617 bpf_prog_53f0063d4d7f65ce+0x2a/0x32 bpf_dispatcher_nop_func include/linux/bpf.h:1350 [inline] __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run include/linux/filter.h:728 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2075 [inline] bpf_trace_run4+0x117/0x1d0 kernel/trace/bpf_trace.c:2118 __traceiter_sched_switch+0x3f/0x60 include/trace/events/sched.h:220 __do_trace_sched_switch include/trace/events/sched.h:220 [inline] trace_sched_switch include/trace/events/sched.h:220 [inline] __schedule+0xa17/0xb30 kernel/sched/core.c:6926 __schedule_loop kernel/sched/core.c:7011 [inline] schedule+0x5f/0xd0 kernel/sched/core.c:7026 kauditd_thread+0x551/0x630 kernel/audit.c:948 kthread+0x489/0x510 kernel/kthread.c:463 ret_from_fork+0x122/0x1b0 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 read to 0xffffc9000fc052c0 of 4 bytes by task 8482 on cpu 0: __bpf_get_stackid+0x287/0x800 kernel/bpf/stackmap.c:249 ____bpf_get_stackid kernel/bpf/stackmap.c:324 [inline] bpf_get_stackid+0xe9/0x120 kernel/bpf/stackmap.c:300 ____bpf_get_stackid_raw_tp kernel/trace/bpf_trace.c:1628 [inline] bpf_get_stackid_raw_tp+0xf6/0x120 kernel/trace/bpf_trace.c:1617 bpf_prog_53f0063d4d7f65ce+0x2a/0x32 bpf_dispatcher_nop_func include/linux/bpf.h:1350 [inline] __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run include/linux/filter.h:728 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2075 [inline] bpf_trace_run4+0x117/0x1d0 kernel/trace/bpf_trace.c:2118 __traceiter_sched_switch+0x3f/0x60 include/trace/events/sched.h:220 __do_trace_sched_switch include/trace/events/sched.h:220 [inline] trace_sched_switch include/trace/events/sched.h:220 [inline] __schedule+0xa17/0xb30 kernel/sched/core.c:6926 __schedule_loop kernel/sched/core.c:7011 [inline] schedule+0x5f/0xd0 kernel/sched/core.c:7026 do_nanosleep+0x96/0x330 kernel/time/hrtimer.c:2116 hrtimer_nanosleep+0xdd/0x280 kernel/time/hrtimer.c:2163 common_nsleep+0x62/0x80 kernel/time/posix-timers.c:1352 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1398 [inline] __se_sys_clock_nanosleep+0x21a/0x250 kernel/time/posix-timers.c:1375 __x64_sys_clock_nanosleep+0x55/0x70 kernel/time/posix-timers.c:1375 x64_sys_call+0x2731/0x3000 arch/x86/include/generated/asm/syscalls_64.h:231 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: 0x5fdcf7c3 -> 0x49f6472e Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 8482 Comm: syz.9.1603 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 ==================================================================