================================================================== BUG: KCSAN: data-race in __bpf_get_stackid / __bpf_get_stackid write to 0xffff888116e4baa8 of 4 bytes by task 26565 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_run2+0x104/0x1c0 kernel/trace/bpf_trace.c:2298 __traceiter_kfree+0x2b/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:4866 kobject_uevent_env+0x28d/0x570 lib/kobject_uevent.c:640 kobject_uevent+0x1d/0x30 lib/kobject_uevent.c:656 device_add+0x41f/0x770 drivers/base/core.c:3670 rfkill_register+0x136/0x500 net/rfkill/core.c:1084 nfc_register_device+0x103/0x1a0 net/nfc/core.c:1132 nci_register_device+0x48e/0x520 net/nfc/nci/core.c:1277 virtual_ncidev_open+0xd8/0x140 drivers/nfc/virtual_ncidev.c:157 misc_open+0x1d3/0x200 drivers/char/misc.c:161 chrdev_open+0x2eb/0x3a0 fs/char_dev.c:414 do_dentry_open+0x646/0xa20 fs/open.c:965 vfs_open+0x37/0x1e0 fs/open.c:1095 do_open fs/namei.c:3887 [inline] path_openat+0x1c5e/0x2170 fs/namei.c:4046 do_filp_open+0x109/0x230 fs/namei.c:4073 do_sys_openat2+0xa6/0x110 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_openat fs/open.c:1466 [inline] __se_sys_openat fs/open.c:1461 [inline] __x64_sys_openat+0xf2/0x120 fs/open.c:1461 x64_sys_call+0x2e9c/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:258 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 0xffff888116e4baa8 of 4 bytes by task 26550 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_run2+0x104/0x1c0 kernel/trace/bpf_trace.c:2298 __traceiter_kfree+0x2b/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:4866 ref_tracker_free+0x28d/0x3e0 lib/ref_tracker.c:340 __netns_tracker_free include/net/net_namespace.h:374 [inline] put_net_track include/net/net_namespace.h:389 [inline] __sk_destruct+0x2f1/0x4c0 net/core/sock.c:2368 sk_destruct net/core/sock.c:2401 [inline] __sk_free+0x227/0x270 net/core/sock.c:2412 sk_free+0x39/0x80 net/core/sock.c:2423 sock_put include/net/sock.h:1960 [inline] qrtr_release+0x19e/0x1e0 net/qrtr/af_qrtr.c:1230 __sock_release net/socket.c:649 [inline] sock_close+0x68/0x150 net/socket.c:1439 __fput+0x298/0x650 fs/file_table.c:468 ____fput+0x1c/0x30 fs/file_table.c:496 task_work_run+0x12e/0x1a0 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xe4/0x100 kernel/entry/common.c:43 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 value changed: 0xbe6c0abc -> 0x552243a9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 26550 Comm: syz.0.13536 Tainted: G W 6.16.0-syzkaller-11241-g186f3edfdd41 #0 PREEMPT(voluntary) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 ==================================================================