syzbot


KCSAN: data-race in nfc_llcp_unregister_device / nfc_llcp_unregister_device

Status: auto-obsoleted due to no activity on 2023/03/27 06:11
Subsystems: net nfc
[Documentation on labels]
First crash: 818d, last: 818d

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

write to 0xffff88813b676808 of 8 bytes by task 21839 on cpu 1:
 __list_del include/linux/list.h:114 [inline]
 __list_del_entry include/linux/list.h:137 [inline]
 list_del include/linux/list.h:148 [inline]
 local_release net/nfc/llcp_core.c:172 [inline]
 kref_put include/linux/kref.h:65 [inline]
 nfc_llcp_local_put net/nfc/llcp_core.c:182 [inline]
 nfc_llcp_unregister_device+0xa8/0x130 net/nfc/llcp_core.c:1620
 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+0x245/0x570 fs/file_table.c:320
 ____fput+0x15/0x20 fs/file_table.c:348
 task_work_run+0x123/0x160 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xcf/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6a/0xa0 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813b676808 of 8 bytes by task 21815 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:172 [inline]
 kref_put include/linux/kref.h:65 [inline]
 nfc_llcp_local_put net/nfc/llcp_core.c:182 [inline]
 nfc_llcp_unregister_device+0x90/0x130 net/nfc/llcp_core.c:1620
 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+0x245/0x570 fs/file_table.c:320
 ____fput+0x15/0x20 fs/file_table.c:348
 task_work_run+0x123/0x160 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xcf/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6a/0xa0 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:296
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xffff88813b98f400 -> 0xffffffff85ea5ba0

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 21815 Comm: syz-executor.3 Not tainted 6.2.0-rc8-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/13 06:01 upstream ceaa837f96ad 93e26d60 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in nfc_llcp_unregister_device / nfc_llcp_unregister_device
* Struck through repros no longer work on HEAD.