syzbot


KCSAN: data-race in usb_set_device_state / usbdev_open

Status: auto-obsoleted due to no activity on 2023/09/27 15:37
Subsystems: usb
[Documentation on labels]
First crash: 730d, last: 730d

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

write to 0xffff888102736018 of 4 bytes by task 26358 on cpu 0:
 usb_set_device_state+0x202/0x360 drivers/usb/core/hub.c:2102
 hcd_bus_suspend+0x1b1/0x2c0 drivers/usb/core/hcd.c:2287
 usb_generic_driver_suspend+0x55/0xd0 drivers/usb/core/generic.c:275
 usb_suspend_device drivers/usb/core/driver.c:1252 [inline]
 usb_suspend_both+0x2a8/0x980 drivers/usb/core/driver.c:1423
 usb_runtime_suspend+0x4a/0xd0 drivers/usb/core/driver.c:1952
 __rpm_callback+0x296/0x720 drivers/base/power/runtime.c:392
 rpm_callback drivers/base/power/runtime.c:446 [inline]
 rpm_suspend+0x79f/0x1260 drivers/base/power/runtime.c:670
 __pm_runtime_suspend+0xf1/0x200 drivers/base/power/runtime.c:1140
 pm_runtime_autosuspend include/linux/pm_runtime.h:356 [inline]
 usb_runtime_idle+0x42/0x50 drivers/usb/core/driver.c:1989
 rpm_idle+0x52b/0x890 drivers/base/power/runtime.c:522
 pm_runtime_work+0x101/0x120 drivers/base/power/runtime.c:968
 process_one_work+0x434/0x860 kernel/workqueue.c:2600
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2751
 kthread+0x1d7/0x210 kernel/kthread.c:389
 ret_from_fork+0x2e/0x40 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304

read to 0xffff888102736018 of 4 bytes by task 9627 on cpu 1:
 usbdev_open+0xe2/0x480 drivers/usb/core/devio.c:1052
 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: 0x00000007 -> 0x00000008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 9627 Comm: syz-executor.2 Not tainted 6.5.0-rc7-syzkaller-00018-g89bf6209cad6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/23 15:27 upstream 89bf6209cad6 b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in usb_set_device_state / usbdev_open
* Struck through repros no longer work on HEAD.