syzbot


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

Status: auto-closed as invalid on 2021/03/07 08:18
Subsystems: usb
[Documentation on labels]
First crash: 1180d, last: 1180d
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 usb 1 1399d 1399d 0/26 auto-closed as invalid on 2020/07/31 17:34
upstream KCSAN: data-race in recursively_mark_NOTATTACHED / usb_submit_urb (2) usb 1 1256d 1235d 0/26 auto-closed as invalid on 2020/12/21 15:45

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

write to 0xffff888129212018 of 4 bytes by task 26201 on cpu 1:
 recursively_mark_NOTATTACHED+0x1ba/0x1e0 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:2199
 hub_port_connect drivers/usb/core/hub.c:5074 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5363 [inline]
 port_event drivers/usb/core/hub.c:5509 [inline]
 hub_event+0x1371/0x2b60 drivers/usb/core/hub.c:5591
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff888129212018 of 4 bytes by interrupt on cpu 0:
 usb_submit_urb+0x201/0xb90 drivers/usb/core/urb.c:422
 ath9k_hif_usb_reg_in_cb+0x2c9/0x350 drivers/net/wireless/ath/ath9k/hif_usb.c:756
 __usb_hcd_giveback_urb+0x244/0x2e0 drivers/usb/core/hcd.c:1656
 usb_hcd_giveback_urb+0xae/0x200 drivers/usb/core/hcd.c:1726
 dummy_timer+0x513/0x24a0 drivers/usb/gadget/udc/dummy_hcd.c:1971
 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1417
 expire_timers+0x116/0x260 kernel/time/timer.c:1462
 __run_timers+0x358/0x3f0 kernel/time/timer.c:1731
 run_timer_softirq+0x19/0x30 kernel/time/timer.c:1744
 __do_softirq+0x13c/0x2c3 kernel/softirq.c:343
 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:226 [inline]
 __irq_exit_rcu+0xb4/0xc0 kernel/softirq.c:420
 sysvec_apic_timer_interrupt+0x74/0x90 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:629
 native_safe_halt arch/x86/include/asm/irqflags.h:60 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:103 [inline]
 acpi_safe_halt drivers/acpi/processor_idle.c:110 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:516 [inline]
 acpi_idle_enter+0x25b/0x2e0 drivers/acpi/processor_idle.c:647
 cpuidle_enter_state+0x2b6/0x7c0 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:158 [inline]
 cpuidle_idle_call kernel/sched/idle.c:239 [inline]
 do_idle+0x193/0x230 kernel/sched/idle.c:299
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:396
 rest_init+0xd7/0xe0 init/main.c:720
 arch_call_rest_init+0xa/0xb
 start_kernel+0x5a1/0x626 init/main.c:1061
 secondary_startup_64_no_verify+0xb0/0xbb

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.11.0-rc5-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
2021/01/31 08:15 upstream 8c947645151c fc9fd31e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in recursively_mark_NOTATTACHED / usb_submit_urb
* Struck through repros no longer work on HEAD.