syzbot


KCSAN: data-race in recursively_mark_NOTATTACHED / usb_submit_urb (2)

Status: auto-closed as invalid on 2020/12/21 15:45
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+9b960064885237bf16a3@syzkaller.appspotmail.com
First crash: 1257d, last: 1257d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in recursively_mark_NOTATTACHED / usb_submit_urb (3) usb 1 1181d 1181d 0/26 auto-closed as invalid on 2021/03/07 08:18
upstream KCSAN: data-race in recursively_mark_NOTATTACHED / usb_submit_urb usb 1 1400d 1400d 0/26 auto-closed as invalid on 2020/07/31 17:34

Sample crash report:
==================================================================
BUG: KCSAN: data-race in recursively_mark_NOTATTACHED / usb_submit_urb

write to 0xffff88812c317818 of 4 bytes by task 56 on cpu 1:
 recursively_mark_NOTATTACHED+0x1af/0x1d0 drivers/usb/core/hub.c:2012
 usb_set_device_state drivers/usb/core/hub.c:2070 [inline]
 usb_disconnect+0x60/0x4b0 drivers/usb/core/hub.c:2198
 hub_port_connect drivers/usb/core/hub.c:5073 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5362 [inline]
 port_event drivers/usb/core/hub.c:5508 [inline]
 hub_event+0x13bb/0x2b60 drivers/usb/core/hub.c:5590
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2272
 worker_thread+0x635/0xb90 kernel/workqueue.c:2418
 kthread+0x1fa/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff88812c317818 of 4 bytes by interrupt on cpu 0:
 usb_submit_urb+0xb0/0xbc0 drivers/usb/core/urb.c:383
 ath9k_hif_usb_reg_in_cb+0x2c9/0x350 drivers/net/wireless/ath/ath9k/hif_usb.c:756
 __usb_hcd_giveback_urb+0x219/0x290 drivers/usb/core/hcd.c:1650
 usb_hcd_giveback_urb+0xae/0x210 drivers/usb/core/hcd.c:1716
 dummy_timer+0x4d3/0x2390 drivers/usb/gadget/udc/dummy_hcd.c:1967
 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1410
 expire_timers+0x116/0x260 kernel/time/timer.c:1455
 __run_timers+0x328/0x3c0 kernel/time/timer.c:1747
 run_timer_softirq+0x19/0x30 kernel/time/timer.c:1760
 __do_softirq+0x12c/0x2b1 kernel/softirq.c:298
 asm_call_irq_on_stack+0xf/0x20
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
 do_softirq_own_stack+0x32/0x40 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:393 [inline]
 __irq_exit_rcu+0xb2/0xc0 kernel/softirq.c:423
 sysvec_apic_timer_interrupt+0x74/0x90 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631
 devkmsg_read+0x4ab/0x580 kernel/printk/printk.c:801
 vfs_read+0x154/0x5c0 fs/read_write.c:494
 ksys_read+0xce/0x180 fs/read_write.c:634
 __do_sys_read fs/read_write.c:644 [inline]
 __se_sys_read fs/read_write.c:642 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:642
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4870 Comm: systemd-journal Not tainted 5.10.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/16 15:44 upstream 09162bc32c88 1bf9a662 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.