================================================================== BUG: KCSAN: data-race in __bpf_get_stackid / bcmp write to 0xffff88811afdbcc8 of 104 bytes by task 3981 on cpu 1: __bpf_get_stackid+0x737/0x7d0 kernel/bpf/stackmap.c:311 ____bpf_get_stackid kernel/bpf/stackmap.c:344 [inline] bpf_get_stackid+0xf3/0x130 kernel/bpf/stackmap.c:323 ____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:1376 [inline] __bpf_prog_run include/linux/filter.h:712 [inline] bpf_prog_run include/linux/filter.h:730 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2075 [inline] bpf_trace_run3+0x194/0x1e0 kernel/trace/bpf_trace.c:2117 __traceiter_kmem_cache_free+0x38/0x60 include/trace/events/kmem.h:117 __do_trace_kmem_cache_free include/trace/events/kmem.h:117 [inline] trace_kmem_cache_free include/trace/events/kmem.h:117 [inline] kmem_cache_free+0x327/0x3a0 mm/slub.c:6773 __d_free fs/dcache.c:346 [inline] dentry_free fs/dcache.c:441 [inline] __dentry_kill+0x3c8/0x4b0 fs/dcache.c:689 finish_dput+0x2b/0x200 fs/dcache.c:879 dput+0x52/0x60 fs/dcache.c:928 __fput+0x444/0x650 fs/file_table.c:476 ____fput+0x1c/0x30 fs/file_table.c:496 task_work_run+0x131/0x1a0 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0x1fe/0x740 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x202/0x2a0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff88811afdbcf8 of 8 bytes by task 3778 on cpu 0: memcmp lib/string.c:683 [inline] bcmp+0x23/0x90 lib/string.c:715 memcmp include/linux/fortify-string.h:727 [inline] __bpf_get_stackid+0x382/0x7d0 kernel/bpf/stackmap.c:302 ____bpf_get_stackid kernel/bpf/stackmap.c:344 [inline] bpf_get_stackid+0xf3/0x130 kernel/bpf/stackmap.c:323 ____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:1376 [inline] __bpf_prog_run include/linux/filter.h:712 [inline] bpf_prog_run include/linux/filter.h:730 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2075 [inline] bpf_trace_run3+0x194/0x1e0 kernel/trace/bpf_trace.c:2117 __traceiter_kmem_cache_free+0x38/0x60 include/trace/events/kmem.h:117 __do_trace_kmem_cache_free include/trace/events/kmem.h:117 [inline] trace_kmem_cache_free include/trace/events/kmem.h:117 [inline] kmem_cache_free+0x327/0x3a0 mm/slub.c:6773 putname+0x90/0x100 fs/namei.c:297 vfs_fstatat+0x11f/0x170 fs/stat.c:376 __do_sys_newfstatat fs/stat.c:542 [inline] __se_sys_newfstatat+0x55/0x260 fs/stat.c:536 __x64_sys_newfstatat+0x55/0x70 fs/stat.c:536 x64_sys_call+0x111f/0x3000 arch/x86/include/generated/asm/syscalls_64.h:263 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd8/0x2a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffffffff8193c5b5 -> 0xffffffff8196c652 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3778 Comm: udevd Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 ==================================================================