syzbot


KCSAN: data-race in __list_del_entry_valid / nfc_llcp_register_device (3)

Status: auto-obsoleted due to no activity on 2023/09/22 07:58
Subsystems: nfc net
[Documentation on labels]
First crash: 637d, last: 632d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __list_del_entry_valid / nfc_llcp_register_device net nfc 2 758d 748d 0/28 auto-obsoleted due to no activity on 2023/05/19 07:55
upstream KCSAN: data-race in __list_del_entry_valid / nfc_llcp_register_device (2) nfc net 1 697d 697d 0/28 auto-obsoleted due to no activity on 2023/07/19 19:51

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

read to 0xffff888171dd6c08 of 8 bytes by task 11067 on cpu 1:
 __list_del_entry_valid+0x15/0xe0 lib/list_debug.c:46
 __list_del_entry include/linux/list.h:134 [inline]
 list_del include/linux/list.h:148 [inline]
 nfc_llcp_remove_local net/nfc/llcp_core.c:306 [inline]
 nfc_llcp_unregister_device+0x5c/0x170 net/nfc/llcp_core.c:1646
 nfc_unregister_device+0xe6/0x130 net/nfc/core.c:1179
 nci_unregister_device+0x14c/0x160 net/nfc/nci/core.c:1303
 virtual_ncidev_close+0x30/0x50 drivers/nfc/virtual_ncidev.c:163
 __fput+0x2fd/0x600 fs/file_table.c:384
 ____fput+0x15/0x20 fs/file_table.c:412
 task_work_run+0x135/0x1a0 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xd1/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff888171dd6c08 of 8 bytes by task 11072 on cpu 0:
 __list_add include/linux/list.h:72 [inline]
 list_add include/linux/list.h:88 [inline]
 nfc_llcp_register_device+0x3e4/0x440 net/nfc/llcp_core.c:1639
 nfc_register_device+0x67/0x190 net/nfc/core.c:1124
 nci_register_device+0x4e6/0x570 net/nfc/nci/core.c:1257
 virtual_ncidev_open+0xdc/0x140 drivers/nfc/virtual_ncidev.c:148
 misc_open+0x203/0x240 drivers/char/misc.c:165
 chrdev_open+0x34f/0x3c0 fs/char_dev.c:414
 do_dentry_open+0x5cd/0xaf0 fs/open.c:914
 vfs_open+0x4a/0x50 fs/open.c:1048
 do_open fs/namei.c:3636 [inline]
 path_openat+0x17f2/0x1d10 fs/namei.c:3793
 do_filp_open+0xf6/0x200 fs/namei.c:3820
 do_sys_openat2+0xab/0x110 fs/open.c:1407
 do_sys_open fs/open.c:1422 [inline]
 __do_sys_openat fs/open.c:1438 [inline]
 __se_sys_openat fs/open.c:1433 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1433
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xffffffff85eb5730 -> 0xdead000000000122

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11072 Comm: syz-executor.2 Tainted: G        W          6.5.0-rc6-syzkaller-00117-g0e8860d2125f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/18 07:57 upstream 0e8860d2125f 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __list_del_entry_valid / nfc_llcp_register_device
2023/08/13 08:12 upstream ae545c3283dc 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __list_del_entry_valid / nfc_llcp_register_device
* Struck through repros no longer work on HEAD.