syzbot


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

Status: moderation: reported on 2025/01/03 20:32
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+67ae22672126e35ea950@syzkaller.appspotmail.com
First crash: 11d, last: 11d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (4) usb 1 829d 829d 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 271d 277d 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 1530d 1499d 0/28 auto-closed as invalid on 2020/12/21 11:58
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (3) usb 2 1020d 1049d 0/28 auto-closed as invalid on 2022/05/06 03:42
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (7) usb 2 337d 358d 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 1149d 1149d 0/28 auto-closed as invalid on 2021/12/27 18:11
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (5) usb 1 637d 637d 0/28 auto-obsoleted due to no activity on 2023/05/23 16:35
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (10) usb 3 84d 129d 0/28 auto-obsoleted due to no activity on 2024/12/17 19:31
upstream KCSAN: data-race in usbdev_ioctl / usbdev_ioctl (9) usb 3 177d 224d 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 574d 574d 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 0xffff88810283ac88 of 4 bytes by task 15112 on cpu 0:
 inode_set_atime_to_ts include/linux/fs.h:1614 [inline]
 usbdev_do_ioctl drivers/usb/core/devio.c:2818 [inline]
 usbdev_ioctl+0x6b6/0x3e00 drivers/usb/core/devio.c:2827
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:892
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:892
 x64_sys_call+0x1690/0x2dc0 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 0xffff88810283ac88 of 4 bytes by task 15116 on cpu 1:
 inode_set_atime_to_ts include/linux/fs.h:1614 [inline]
 usbdev_do_ioctl drivers/usb/core/devio.c:2818 [inline]
 usbdev_ioctl+0x6b6/0x3e00 drivers/usb/core/devio.c:2827
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:892
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:892
 x64_sys_call+0x1690/0x2dc0 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: 0x3634be8f -> 0x392faf0e

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 15116 Comm: syz.8.15698 Not tainted 6.13.0-rc5-syzkaller-00012-g0bc21e701a6f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/03 20:31 upstream 0bc21e701a6f f3558dbf .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.