syzbot


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

Status: auto-closed as invalid on 2021/12/27 18:11
Subsystems: usb
[Documentation on labels]
First crash: 1330d, last: 1330d
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 1010d 1010d 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 451d 458d 0/29 auto-obsoleted due to no activity on 2024/05/23 21:51
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (12) usb 6 2 17d 67d 0/29 moderation: reported on 2025/05/07 21:33
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl usb 6 1 1710d 1680d 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 1200d 1229d 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 518d 538d 0/29 auto-obsoleted due to no activity on 2024/03/18 17:20
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (5) usb 6 1 818d 818d 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 264d 310d 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 172d 191d 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 357d 404d 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 754d 754d 0/29 auto-obsoleted due to no activity on 2023/07/25 21:09

Sample crash report:
vhci_hcd: default hub control req: 0000 v0000 i0000 l0
==================================================================
BUG: KCSAN: data-race in usbdev_ioctl / usbdev_ioctl

write to 0xffff888102b4a218 of 8 bytes by task 25065 on cpu 0:
 usbdev_do_ioctl drivers/usb/core/devio.c:2782 [inline]
 usbdev_ioctl+0x67e/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

write to 0xffff888102b4a218 of 8 bytes by task 25068 on cpu 1:
 usbdev_do_ioctl drivers/usb/core/devio.c:2782 [inline]
 usbdev_ioctl+0x67e/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

value changed: 0x000000003aaf58e0 -> 0x0000000002a815df

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25068 Comm: syz-executor.3 Not tainted 5.16.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
usb usb2: Requested nonsensical USBDEVFS_URB_ZERO_PACKET.
vhci_hcd: default hub control req: 0000 v0000 i0000 l0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/22 18:10 upstream 136057256686 545ab074 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in usbdev_ioctl / usbdev_ioctl
* Struck through repros no longer work on HEAD.