syzbot


KCSAN: data-race in nfc_llcp_local_put / nfc_llcp_register_device

Status: auto-obsoleted due to no activity on 2023/02/11 13:12
Subsystems: net nfc
[Documentation on labels]
First crash: 862d, last: 858d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in nfc_llcp_local_put / nfc_llcp_register_device

write to 0xffff88811d4ffc08 of 8 bytes by task 27403 on cpu 1:
 __list_add include/linux/list.h:72 [inline]
 list_add include/linux/list.h:88 [inline]
 nfc_llcp_register_device+0x3e0/0x440 net/nfc/llcp_core.c:1603
 nfc_register_device+0x63/0x190 net/nfc/core.c:1124
 nci_register_device+0x4ee/0x580 net/nfc/nci/core.c:1257
 virtual_ncidev_open+0xd8/0x140 drivers/nfc/virtual_ncidev.c:148
 misc_open+0x264/0x2a0 drivers/char/misc.c:165
 chrdev_open+0x362/0x3d0 fs/char_dev.c:414
 do_dentry_open+0x59a/0x910 fs/open.c:882
 vfs_open+0x43/0x50 fs/open.c:1013
 do_open fs/namei.c:3557 [inline]
 path_openat+0x16b8/0x1b60 fs/namei.c:3714
 do_filp_open+0x105/0x220 fs/namei.c:3741
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1337
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88811d4ffc08 of 8 bytes by task 27388 on cpu 0:
 __list_del_entry include/linux/list.h:137 [inline]
 list_del include/linux/list.h:148 [inline]
 local_release net/nfc/llcp_core.c:171 [inline]
 kref_put include/linux/kref.h:65 [inline]
 nfc_llcp_local_put+0x55/0x1a0 net/nfc/llcp_core.c:181
 nfc_llcp_unregister_device+0x100/0x120 net/nfc/llcp_core.c:1619
 nfc_unregister_device+0xe2/0x130 net/nfc/core.c:1179
 nci_unregister_device+0x160/0x170 net/nfc/nci/core.c:1303
 virtual_ncidev_close+0x2c/0x50 drivers/nfc/virtual_ncidev.c:163
 __fput+0x245/0x570 fs/file_table.c:320
 ____fput+0x11/0x20 fs/file_table.c:348
 task_work_run+0xde/0x110 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:171
 exit_to_user_mode_prepare kernel/entry/common.c:203 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:296
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xffffffff85e80690 -> 0xffff888108f38400

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 27388 Comm: syz-executor.1 Not tainted 6.2.0-rc2-syzkaller-00010-g69b41ac87e4a-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/04 20:33 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in nfc_llcp_local_put / nfc_llcp_register_device
2022/12/31 13:02 upstream bff687b3dad6 ab32d508 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in nfc_llcp_local_put / nfc_llcp_register_device
* Struck through repros no longer work on HEAD.