syzbot


KCSAN: data-race in mon_reader_add / usb_hcd_submit_urb (2)

Status: moderation: reported on 2024/11/15 14:33
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+37dc0d721a7736c61b72@syzkaller.appspotmail.com
First crash: 69d, last: 53d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in mon_reader_add / usb_hcd_submit_urb usb 1 314d 314d 0/28 auto-obsoleted due to no activity on 2024/04/19 22:45

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

write to 0xffff8881030ac088 of 4 bytes by task 7520 on cpu 1:
 mon_reader_add+0xc7/0x1f0 drivers/usb/mon/mon_main.c:47
 mon_bin_open+0x32b/0x3b0 drivers/usb/mon/mon_bin.c:720
 chrdev_open+0x2f9/0x370 fs/char_dev.c:414
 do_dentry_open+0x621/0xa20 fs/open.c:945
 vfs_open+0x38/0x1f0 fs/open.c:1075
 do_open fs/namei.c:3828 [inline]
 path_openat+0x1ac2/0x1fa0 fs/namei.c:3987
 do_filp_open+0x107/0x230 fs/namei.c:4014
 do_sys_openat2+0xab/0x120 fs/open.c:1402
 do_sys_open fs/open.c:1417 [inline]
 __do_sys_openat fs/open.c:1433 [inline]
 __se_sys_openat fs/open.c:1428 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1428
 x64_sys_call+0x2b30/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:258
 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

read to 0xffff8881030ac088 of 4 bytes by interrupt on cpu 0:
 usbmon_urb_submit include/linux/usb/hcd.h:723 [inline]
 usb_hcd_submit_urb+0x86/0x1510 drivers/usb/core/hcd.c:1518
 usb_submit_urb+0xa80/0xb70 drivers/usb/core/urb.c:581
 hub_resubmit_irq_urb+0x5b/0x100 drivers/usb/core/hub.c:687
 hub_irq+0x28d/0x2c0 drivers/usb/core/hub.c:807
 __usb_hcd_giveback_urb+0x290/0x370 drivers/usb/core/hcd.c:1650
 usb_giveback_urb_bh+0x170/0x280 drivers/usb/core/hcd.c:1684
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3310
 bh_worker+0x21f/0x370 kernel/workqueue.c:3570
 workqueue_softirq_action+0xaa/0xc0 kernel/workqueue.c:3597
 tasklet_hi_action+0xe/0x30 kernel/softirq.c:835
 handle_softirqs+0xbf/0x280 kernel/softirq.c:554
 run_ksoftirqd+0x1c/0x30 kernel/softirq.c:943
 smpboot_thread_fn+0x31c/0x4c0 kernel/smpboot.c:164
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 15 Comm: ksoftirqd/0 Not tainted 6.12.0-syzkaller-12113-gbcc8eda6d349 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/01 16:14 upstream bcc8eda6d349 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mon_reader_add / usb_hcd_submit_urb
2024/11/29 08:52 upstream 7af08b57bcb9 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mon_reader_add / usb_hcd_submit_urb
2024/11/21 00:42 upstream 8f7c8b88bda4 4fca1650 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mon_reader_add / usb_hcd_submit_urb
2024/11/15 14:33 upstream cfaaa7d010d1 f6ede3a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mon_reader_add / usb_hcd_submit_urb
* Struck through repros no longer work on HEAD.