syzbot


KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (12)

Status: auto-obsoleted due to no activity on 2025/08/21 21:41
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+f8a87b69048c33799721@syzkaller.appspotmail.com
First crash: 107d, last: 57d
Similar bugs (11)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (4) usb 6 1 1049d 1049d 0/29 auto-obsoleted due to no activity on 2022/11/12 18:04
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (8) usb 6 4 491d 497d 0/29 auto-obsoleted due to no activity on 2024/05/23 21:51
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl usb 6 1 1750d 1719d 0/29 auto-closed as invalid on 2020/12/21 11:58
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (3) usb 6 2 1240d 1269d 0/29 auto-closed as invalid on 2022/05/06 03:42
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (7) usb 6 2 557d 578d 0/29 auto-obsoleted due to no activity on 2024/03/18 17:20
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (2) usb 6 1 1369d 1369d 0/29 auto-closed as invalid on 2021/12/27 18:11
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (5) usb 6 1 857d 857d 0/29 auto-obsoleted due to no activity on 2023/05/23 16:35
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (10) usb 6 3 304d 349d 0/29 auto-obsoleted due to no activity on 2024/12/17 19:31
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (11) usb 6 2 212d 231d 0/29 auto-obsoleted due to no activity on 2025/03/19 22:59
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (9) usb 6 3 397d 444d 0/29 auto-obsoleted due to no activity on 2024/08/25 21:37
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (6) usb 6 1 794d 794d 0/29 auto-obsoleted due to no activity on 2023/07/25 21:09

Sample crash report:
vhci_hcd: invalid port number 96
vhci_hcd: default hub control req: 0000 vfffc i0060 l0
==================================================================
BUG: KCSAN: data-race in usbdev_ioctl / usbdev_ioctl

write to 0xffff888102467df8 of 4 bytes by task 12571 on cpu 0:
 inode_set_atime_to_ts include/linux/fs.h:1684 [inline]
 usbdev_do_ioctl drivers/usb/core/devio.c:2818 [inline]
 usbdev_ioctl+0x5ff/0x1710 drivers/usb/core/devio.c:2827
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl+0xce/0x140 fs/ioctl.c:893
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:893
 x64_sys_call+0x19a8/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff888102467df8 of 4 bytes by task 12572 on cpu 1:
 inode_set_atime_to_ts include/linux/fs.h:1684 [inline]
 usbdev_do_ioctl drivers/usb/core/devio.c:2818 [inline]
 usbdev_ioctl+0x5ff/0x1710 drivers/usb/core/devio.c:2827
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl+0xce/0x140 fs/ioctl.c:893
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:893
 x64_sys_call+0x19a8/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x23d51167 -> 0x1da462e1

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 12572 Comm: syz.4.3341 Not tainted 6.16.0-rc3-syzkaller-00072-gee88bddf7f2f #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/26 21:40 upstream ee88bddf7f2f 803ce19b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in usbdev_ioctl / usbdev_ioctl
2025/05/07 21:33 upstream 707df3375124 dbf35fa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in usbdev_ioctl / usbdev_ioctl
* Struck through repros no longer work on HEAD.