syzbot


KCSAN: data-race in mon_reader_del / usb_hcd_submit_urb (5)

Status: moderation: reported on 2025/03/19 07:47
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+9d5392a375a783a1b77a@syzkaller.appspotmail.com
First crash: 15h39m, last: 15h39m
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in mon_reader_del / usb_hcd_submit_urb (3) usb 1 232d 232d 0/28 auto-obsoleted due to no activity on 2024/09/03 21:44
upstream KCSAN: data-race in mon_reader_del / usb_hcd_submit_urb (4) usb 4 58d 132d 0/28 auto-obsoleted due to no activity on 2025/03/17 03:28
upstream KCSAN: data-race in mon_reader_del / usb_hcd_submit_urb (2) usb 2 312d 316d 0/28 auto-obsoleted due to no activity on 2024/06/15 17:54
upstream KCSAN: data-race in mon_reader_del / usb_hcd_submit_urb usb 1 692d 692d 0/28 auto-obsoleted due to no activity on 2023/06/01 00:30

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

write to 0xffff88810148d088 of 4 bytes by task 10567 on cpu 0:
 mon_stop drivers/usb/mon/mon_main.c:166 [inline]
 mon_reader_del+0x1bd/0x260 drivers/usb/mon/mon_main.c:73
 mon_bin_release+0x66/0x120 drivers/usb/mon/mon_bin.c:793
 __fput+0x2ac/0x640 fs/file_table.c:464
 ____fput+0x1c/0x30 fs/file_table.c:492
 task_work_run+0x13a/0x1a0 kernel/task_work.c:227
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0xa8/0x120 kernel/entry/common.c:218
 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88810148d088 of 4 bytes by task 10555 on cpu 1:
 usbmon_urb_submit include/linux/usb/hcd.h:723 [inline]
 usb_hcd_submit_urb+0x86/0x14d0 drivers/usb/core/hcd.c:1518
 usb_submit_urb+0xa80/0xb70 drivers/usb/core/urb.c:581
 usb_start_wait_urb+0x91/0x190 drivers/usb/core/message.c:59
 usb_internal_control_msg drivers/usb/core/message.c:103 [inline]
 usb_control_msg+0x182/0x240 drivers/usb/core/message.c:154
 set_port_feature drivers/usb/core/hub.c:464 [inline]
 hub_suspend+0x4a2/0x560 drivers/usb/core/hub.c:3964
 usb_suspend_interface drivers/usb/core/driver.c:1323 [inline]
 usb_suspend_both+0x16a/0x9a0 drivers/usb/core/driver.c:1428
 usb_runtime_suspend+0x4a/0xd0 drivers/usb/core/driver.c:1963
 __rpm_callback+0x299/0x720 drivers/base/power/runtime.c:394
 rpm_callback drivers/base/power/runtime.c:448 [inline]
 rpm_suspend+0x6e4/0x1020 drivers/base/power/runtime.c:672
 __pm_runtime_suspend+0xf1/0x210 drivers/base/power/runtime.c:1142
 pm_runtime_put_sync_autosuspend include/linux/pm_runtime.h:524 [inline]
 usb_autosuspend_device+0x40/0x50 drivers/usb/core/driver.c:1692
 usbdev_release+0x291/0x4a0 drivers/usb/core/devio.c:1114
 __fput+0x2ac/0x640 fs/file_table.c:464
 ____fput+0x1c/0x30 fs/file_table.c:492
 task_work_run+0x13a/0x1a0 kernel/task_work.c:227
 get_signal+0xe78/0x1000 kernel/signal.c:2809
 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x62/0x120 kernel/entry/common.c:218
 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 10555 Comm: syz.6.12521 Tainted: G        W          6.14.0-rc7-syzkaller-00069-g81e4f8d68c66 #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/19 07:46 upstream 81e4f8d68c66 8d0a2921 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mon_reader_del / usb_hcd_submit_urb
* Struck through repros no longer work on HEAD.