syzbot


KCSAN: data-race in hub_disconnect / usb_port_runtime_suspend

Status: auto-closed as invalid on 2022/01/25 13:08
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 351d, last: 351d

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

write to 0xffff888104e8b8f0 of 1 bytes by task 9810 on cpu 1:
 hub_disconnect+0x5c/0x2e0 drivers/usb/core/hub.c:1718
 usb_unbind_interface+0x178/0x530 drivers/usb/core/driver.c:458
 __device_release_driver drivers/base/dd.c:1205 [inline]
 device_release_driver_internal+0x34d/0x4d0 drivers/base/dd.c:1236
 device_release_driver+0x15/0x20 drivers/base/dd.c:1259
 usb_driver_release_interface+0xe7/0x100 drivers/usb/core/driver.c:627
 proc_disconnect_claim drivers/usb/core/devio.c:2464 [inline]
 usbdev_do_ioctl drivers/usb/core/devio.c:2747 [inline]
 usbdev_ioctl+0x383f/0x3bb0 drivers/usb/core/devio.c:2791
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:860
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888104e8b8f0 of 1 bytes by task 891 on cpu 0:
 usb_port_runtime_suspend+0x7e/0x1f0 drivers/usb/core/port.c:262
 __rpm_callback+0x2b1/0x710 drivers/base/power/runtime.c:377
 rpm_callback drivers/base/power/runtime.c:504 [inline]
 rpm_suspend+0x7d9/0x1120 drivers/base/power/runtime.c:644
 pm_runtime_work+0x10e/0x130 drivers/base/power/runtime.c:941
 process_one_work+0x3fc/0x980 kernel/workqueue.c:2298
 worker_thread+0x616/0xa70 kernel/workqueue.c:2445
 kthread+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

value changed: 0x00 -> 0x06

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 891 Comm: kworker/0:2 Not tainted 5.16.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: pm pm_runtime_work
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/21 13:07 upstream 6e0567b73052 a938f0b8 .config log report info KCSAN: data-race in hub_disconnect / usb_port_runtime_suspend
* Struck through repros no longer work on HEAD.