================================================================== BUG: KCSAN: data-race in __bpf_get_stackid / __bpf_get_stackid write to 0xffff88812f9d218c of 4 bytes by task 22179 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: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_run2+0x107/0x1c0 kernel/trace/bpf_trace.c:2298 __traceiter_kfree+0x2e/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:4881 security_context_to_sid_core+0x375/0x3b0 security/selinux/ss/services.c:1622 security_context_to_sid+0x2e/0x40 security/selinux/ss/services.c:1642 selinux_inode_setxattr+0x4af/0x6e0 security/selinux/hooks.c:3355 security_inode_setxattr+0x13a/0x1b0 security/security.c:2422 __vfs_setxattr_locked+0x83/0x1d0 fs/xattr.c:286 vfs_setxattr+0x132/0x270 fs/xattr.c:321 do_setxattr fs/xattr.c:636 [inline] filename_setxattr+0x1ad/0x400 fs/xattr.c:665 path_setxattrat+0x2c9/0x310 fs/xattr.c:713 __do_sys_lsetxattr fs/xattr.c:754 [inline] __se_sys_lsetxattr fs/xattr.c:750 [inline] __x64_sys_lsetxattr+0x71/0x90 fs/xattr.c:750 x64_sys_call+0x2877/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:190 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 0xffff88812f9d218c of 4 bytes by task 22169 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: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_run2+0x107/0x1c0 kernel/trace/bpf_trace.c:2298 __traceiter_kfree+0x2e/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:4881 ___sys_recvmsg+0x135/0x370 net/socket.c:2880 do_recvmmsg+0x1ef/0x540 net/socket.c:2974 __sys_recvmmsg net/socket.c:3048 [inline] __do_sys_recvmmsg net/socket.c:3071 [inline] __se_sys_recvmmsg net/socket.c:3064 [inline] __x64_sys_recvmmsg+0xe5/0x170 net/socket.c:3064 x64_sys_call+0x27a6/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:300 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: 0x0000000b -> 0x00000011 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 22169 Comm: syz.5.16917 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 ==================================================================