syzbot


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

Status: moderation: reported on 2025/12/16 01:20
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+ed64502d27aa469cf92e@syzkaller.appspotmail.com
First crash: 16d, last: 5d04h
Similar bugs (13)
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 1180d 1180d 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 622d 628d 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 188d 238d 0/29 auto-obsoleted due to no activity on 2025/08/21 21:41
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (13) usb 6 1 99d 99d 0/29 auto-obsoleted due to no activity on 2025/11/18 12:23
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl usb 6 1 1881d 1850d 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 1371d 1400d 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 688d 709d 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 1500d 1500d 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 988d 988d 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 435d 480d 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 343d 362d 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 528d 575d 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 925d 925d 0/29 auto-obsoleted due to no activity on 2023/07/25 21:09

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

write to 0xffff8881020e7828 of 4 bytes by task 26498 on cpu 0:
 inode_set_atime_to_ts include/linux/fs.h:1624 [inline]
 usbdev_do_ioctl drivers/usb/core/devio.c:2818 [inline]
 usbdev_ioctl+0x5f3/0x1700 drivers/usb/core/devio.c:2827
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xce/0x140 fs/ioctl.c:583
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:583
 x64_sys_call+0x14b0/0x3000 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xca/0x2b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff8881020e7828 of 4 bytes by task 26501 on cpu 1:
 inode_set_atime_to_ts include/linux/fs.h:1624 [inline]
 usbdev_do_ioctl drivers/usb/core/devio.c:2818 [inline]
 usbdev_ioctl+0x5f3/0x1700 drivers/usb/core/devio.c:2827
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xce/0x140 fs/ioctl.c:583
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:583
 x64_sys_call+0x14b0/0x3000 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xca/0x2b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0c3326b5 -> 0x0f404f87

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 26501 Comm: syz.7.7144 Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/27 06:42 upstream 3f0e9c8cefa9 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in usbdev_ioctl / usbdev_ioctl
2025/12/16 01:20 upstream 8f0b4cce4481 d6526ea3 .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.