syzbot


KCSAN: data-race in vhci_hub_control / vhci_shutdown_connection

Status: auto-closed as invalid on 2022/07/29 15:48
Subsystems: usb
[Documentation on labels]
First crash: 686d, last: 665d

Sample crash report:
BUG: KCSAN: data-race in vhci_hub_control / vhci_shutdown_connection

write to 0xffff888103b6a268 of 4 bytes by task 28786 on cpu 0:
 rh_port_disconnect drivers/usb/usbip/vhci_hcd.c:204 [inline]
 vhci_shutdown_connection+0x253/0x2d0 drivers/usb/usbip/vhci_hcd.c:1062
 event_handler+0x1a7/0x360 drivers/usb/usbip/usbip_event.c:79
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

read to 0xffff888103b6a268 of 4 bytes by task 15196 on cpu 1:
 vhci_hub_control+0xbb3/0xdb0 drivers/usb/usbip/vhci_hcd.c:657
 rh_call_control drivers/usb/core/hcd.c:683 [inline]
 rh_urb_enqueue drivers/usb/core/hcd.c:848 [inline]
 usb_hcd_submit_urb+0xc8e/0x1360 drivers/usb/core/hcd.c:1551
 usb_submit_urb+0xbef/0xca0 drivers/usb/core/urb.c:594
 usb_start_wait_urb+0x91/0x190 drivers/usb/core/message.c:58
 usb_internal_control_msg drivers/usb/core/message.c:102 [inline]
 usb_control_msg+0x17e/0x240 drivers/usb/core/message.c:153
 usb_clear_port_feature drivers/usb/core/hub.c:429 [inline]
 hub_activate+0x7ad/0x1150 drivers/usb/core/hub.c:1178
 hub_resume+0x43/0x200 drivers/usb/core/hub.c:3894
 usb_resume_interface drivers/usb/core/driver.c:1359 [inline]
 usb_resume_both+0x3d0/0x5b0 drivers/usb/core/driver.c:1519
 usb_runtime_resume+0x1d/0x20 drivers/usb/core/driver.c:1977
 __rpm_callback+0x2ae/0x750 drivers/base/power/runtime.c:398
 rpm_callback drivers/base/power/runtime.c:525 [inline]
 rpm_resume+0xa67/0xea0 drivers/base/power/runtime.c:902
 __pm_runtime_resume+0xd8/0xf0 drivers/base/power/runtime.c:1160
 pm_runtime_get_sync include/linux/pm_runtime.h:426 [inline]
 usb_autoresume_device+0x20/0x60 drivers/usb/core/driver.c:1707
 usb_remote_wakeup+0x42/0x90 drivers/usb/core/hub.c:3732
 hcd_resume_work+0x21/0x30 drivers/usb/core/hcd.c:2396
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

value changed: 0x00000701 -> 0x00010700

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 15196 Comm: kworker/1:1 Not tainted 5.19.0-rc3-syzkaller-00146-g92f20ff72066-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: pm hcd_resume_work
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/24 15:47 upstream 92f20ff72066 a371c43c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vhci_hub_control / vhci_shutdown_connection
2022/06/09 14:02 upstream 6bfb56e93bce 0d5abf15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vhci_hub_control / vhci_shutdown_connection
2022/06/03 16:42 upstream 50fd82b3a9a9 eee80d3c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vhci_hub_control / vhci_shutdown_connection
* Struck through repros no longer work on HEAD.