================================================================== BUG: KCSAN: data-race in __bpf_get_stackid / __bpf_get_stackid write to 0xffffc90009b1b1b0 of 4 bytes by task 25971 on cpu 0: __bpf_get_stackid+0x76b/0x800 kernel/bpf/stackmap.c:291 ____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:1810 [inline] bpf_get_stackid_raw_tp+0xf6/0x120 kernel/trace/bpf_trace.c:1799 bpf_prog_e6fc920cfeff8120+0x2a/0x32 bpf_dispatcher_nop_func include/linux/bpf.h:1332 [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:2257 [inline] bpf_trace_run4+0x114/0x1d0 kernel/trace/bpf_trace.c:2300 __traceiter_sched_switch+0x3c/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:6958 __schedule_loop kernel/sched/core.c:7043 [inline] schedule+0x5f/0xd0 kernel/sched/core.c:7058 coredump_task_exit+0xea/0x150 kernel/exit.c:446 synchronize_group_exit kernel/exit.c:889 [inline] do_exit+0x1180/0x15c0 kernel/exit.c:903 do_group_exit+0xff/0x140 kernel/exit.c:1102 get_signal+0xe59/0xf70 kernel/signal.c:3034 arch_do_signal_or_restart+0x96/0x480 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop+0x7a/0x100 kernel/entry/common.c:40 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x1d6/0x200 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffc90009b1b1b0 of 4 bytes by task 22020 on cpu 1: __bpf_get_stackid+0x287/0x800 kernel/bpf/stackmap.c:249 ____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:1810 [inline] bpf_get_stackid_raw_tp+0xf6/0x120 kernel/trace/bpf_trace.c:1799 bpf_prog_e6fc920cfeff8120+0x2a/0x32 bpf_dispatcher_nop_func include/linux/bpf.h:1332 [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:2257 [inline] bpf_trace_run4+0x114/0x1d0 kernel/trace/bpf_trace.c:2300 __traceiter_sched_switch+0x3c/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:6958 preempt_schedule_common kernel/sched/core.c:7145 [inline] __cond_resched+0x4e/0x90 kernel/sched/core.c:7490 _cond_resched include/linux/sched.h:2070 [inline] shmem_undo_range+0x355/0xa80 mm/shmem.c:1158 shmem_truncate_range mm/shmem.c:1269 [inline] shmem_evict_inode+0x134/0x520 mm/shmem.c:1397 evict+0x2e3/0x550 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput+0x447/0x5b0 fs/inode.c:1923 do_unlinkat+0x284/0x480 fs/namei.c:4657 __do_sys_unlink fs/namei.c:4696 [inline] __se_sys_unlink fs/namei.c:4694 [inline] __x64_sys_unlink+0x2e/0x40 fs/namei.c:4694 x64_sys_call+0x2dc0/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:88 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: 0x3cbc79bc -> 0x0b2a29c2 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 22020 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 ==================================================================