syzbot


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

Status: moderation: reported on 2024/09/07 13:44
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+0b3f430ff83de9244fdc@syzkaller.appspotmail.com
First crash: 74d, last: 29d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (4) usb 1 774d 774d 0/28 auto-obsoleted due to no activity on 2022/11/12 18:04
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (8) usb 4 216d 222d 0/28 auto-obsoleted due to no activity on 2024/05/23 21:51
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl usb 1 1475d 1444d 0/28 auto-closed as invalid on 2020/12/21 11:58
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (3) usb 2 965d 994d 0/28 auto-closed as invalid on 2022/05/06 03:42
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (7) usb 2 282d 303d 0/28 auto-obsoleted due to no activity on 2024/03/18 17:20
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (2) usb 1 1094d 1094d 0/28 auto-closed as invalid on 2021/12/27 18:11
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (5) usb 1 582d 582d 0/28 auto-obsoleted due to no activity on 2023/05/23 16:35
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (9) usb 3 122d 169d 0/28 auto-obsoleted due to no activity on 2024/08/25 21:37
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (6) usb 1 519d 519d 0/28 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 0xffff888102abe6b8 of 4 bytes by task 20349 on cpu 1:
 inode_set_atime_to_ts include/linux/fs.h:1610 [inline]
 usbdev_do_ioctl drivers/usb/core/devio.c:2815 [inline]
 usbdev_ioctl+0x6b6/0x3e00 drivers/usb/core/devio.c:2824
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl+0xcd/0x140 fs/ioctl.c:893
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:893
 x64_sys_call+0x15cc/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff888102abe6b8 of 4 bytes by task 20314 on cpu 0:
 inode_set_atime_to_ts include/linux/fs.h:1610 [inline]
 usbdev_do_ioctl drivers/usb/core/devio.c:2815 [inline]
 usbdev_ioctl+0x6b6/0x3e00 drivers/usb/core/devio.c:2824
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl+0xcd/0x140 fs/ioctl.c:893
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:893
 x64_sys_call+0x15cc/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x32651178 -> 0x342ed4f9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 20314 Comm: syz.3.6077 Not tainted 6.12.0-rc4-syzkaller-00045-gd12937763990 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/22 19:30 upstream d12937763990 a93682b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in usbdev_ioctl / usbdev_ioctl
2024/09/30 11:27 upstream 9852d85ec9d4 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in usbdev_ioctl / usbdev_ioctl
2024/09/07 13:43 upstream b31c44928842 9750182a .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.