syzbot


KCSAN: data-race in __usb_hcd_giveback_urb / mon_reader_del

Status: auto-obsoleted due to no activity on 2025/04/22 18:04
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+18079e8398e66af13287@syzkaller.appspotmail.com
First crash: 207d, last: 110d

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

write to 0xffff8881013cd088 of 4 bytes by task 17096 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 0xffff8881013cd088 of 4 bytes by interrupt on cpu 1:
 usbmon_urb_complete include/linux/usb/hcd.h:737 [inline]
 __usb_hcd_giveback_urb+0x13d/0x370 drivers/usb/core/hcd.c:1635
 usb_giveback_urb_bh+0x170/0x280 drivers/usb/core/hcd.c:1684
 process_one_work kernel/workqueue.c:3236 [inline]
 process_scheduled_works+0x4db/0xa20 kernel/workqueue.c:3317
 bh_worker+0x21f/0x370 kernel/workqueue.c:3577
 workqueue_softirq_action+0xaa/0xc0 kernel/workqueue.c:3604
 tasklet_action+0xb/0x30 kernel/softirq.c:836
 handle_softirqs+0xbf/0x280 kernel/softirq.c:561
 run_ksoftirqd+0x1c/0x30 kernel/softirq.c:950
 smpboot_thread_fn+0x31c/0x4c0 kernel/smpboot.c:164
 kthread+0x4ae/0x520 kernel/kthread.c:464
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 23 Comm: ksoftirqd/1 Tainted: G        W          6.14.0-rc4-syzkaller-00015-g2a1944bff549 #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/25 18:03 upstream 2a1944bff549 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __usb_hcd_giveback_urb / mon_reader_del
2025/01/30 10:11 upstream ebbb8be421ee afe4eff5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __usb_hcd_giveback_urb / mon_reader_del
2024/12/26 15:20 upstream 9b2ffa6148b1 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __usb_hcd_giveback_urb / mon_reader_del
2024/11/20 23:48 upstream 8f7c8b88bda4 4fca1650 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __usb_hcd_giveback_urb / mon_reader_del
* Struck through repros no longer work on HEAD.