syzbot


KCSAN: data-race in add_input_randomness / add_input_randomness (2)

Status: auto-closed as invalid on 2020/10/04 07:48
Subsystems: kernel
[Documentation on labels]
First crash: 1856d, last: 1828d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in add_input_randomness / add_input_randomness (3) kernel 6 13 1611d 1729d 0/29 auto-closed as invalid on 2021/05/09 19:05
upstream KCSAN: data-race in add_input_randomness / add_input_randomness kernel 6 2 1893d 1899d 0/29 auto-closed as invalid on 2020/07/31 12:53

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

write to 0xffffffff89e6eb94 of 1 bytes by interrupt on cpu 1:
 add_input_randomness+0x66/0x2c0 drivers/char/random.c:1210
 input_handle_event+0x637/0xd70 drivers/input/input.c:373
 input_event+0x7d/0xa0 drivers/input/input.c:441
 hidinput_hid_event+0xa91/0xba0 drivers/hid/hid-input.c:1392
 hid_process_event+0x2f3/0x3c0 drivers/hid/hid-core.c:1512
 hid_input_field drivers/hid/hid-core.c:1556 [inline]
 hid_report_raw_event+0x8b2/0xbd0 drivers/hid/hid-core.c:1765
 hid_input_report+0x2c9/0x330 drivers/hid/hid-core.c:1832
 hid_irq_in+0x2cb/0x3d0 drivers/hid/usbhid/hid-core.c:284
 __usb_hcd_giveback_urb+0x216/0x290 drivers/usb/core/hcd.c:1650
 usb_hcd_giveback_urb+0xae/0x200 drivers/usb/core/hcd.c:1716
 dummy_timer+0x513/0x2470 drivers/usb/gadget/udc/dummy_hcd.c:1967
 call_timer_fn+0x30/0x2a0 kernel/time/timer.c:1413
 expire_timers+0x116/0x290 kernel/time/timer.c:1458
 __run_timers+0x348/0x3e0 kernel/time/timer.c:1755
 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1768
 __do_softirq+0x198/0x360 kernel/softirq.c:298
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 do_softirq_own_stack+0x5d/0x80 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:393 [inline]
 __irq_exit_rcu+0x115/0x120 kernel/softirq.c:423
 sysvec_apic_timer_interrupt+0xba/0xd0 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581
 native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:60
 arch_safe_halt arch/x86/include/asm/paravirt.h:150 [inline]
 acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:524 [inline]
 acpi_idle_enter+0x30d/0x680 drivers/acpi/processor_idle.c:650
 cpuidle_enter_state+0x245/0x5d0 drivers/cpuidle/cpuidle.c:235
 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:346
 call_cpuidle kernel/sched/idle.c:126 [inline]
 cpuidle_idle_call kernel/sched/idle.c:214 [inline]
 do_idle+0x229/0x310 kernel/sched/idle.c:276
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:372
 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243

read to 0xffffffff89e6eb94 of 1 bytes by interrupt on cpu 0:
 add_input_randomness+0x35/0x2c0 drivers/char/random.c:1207
 input_handle_event+0x637/0xd70 drivers/input/input.c:373
 input_event+0x7d/0xa0 drivers/input/input.c:441
 hidinput_hid_event+0xa91/0xba0 drivers/hid/hid-input.c:1392
 hid_process_event+0x2f3/0x3c0 drivers/hid/hid-core.c:1512
 hid_input_field drivers/hid/hid-core.c:1556 [inline]
 hid_report_raw_event+0x8b2/0xbd0 drivers/hid/hid-core.c:1765
 hid_input_report+0x2c9/0x330 drivers/hid/hid-core.c:1832
 hid_irq_in+0x2cb/0x3d0 drivers/hid/usbhid/hid-core.c:284
 __usb_hcd_giveback_urb+0x216/0x290 drivers/usb/core/hcd.c:1650
 usb_hcd_giveback_urb+0xae/0x200 drivers/usb/core/hcd.c:1716
 dummy_timer+0x513/0x2470 drivers/usb/gadget/udc/dummy_hcd.c:1967
 call_timer_fn+0x30/0x2a0 kernel/time/timer.c:1413
 expire_timers+0x116/0x290 kernel/time/timer.c:1458
 __run_timers+0x348/0x3e0 kernel/time/timer.c:1755
 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1768
 __do_softirq+0x198/0x360 kernel/softirq.c:298
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 do_softirq_own_stack+0x5d/0x80 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:393 [inline]
 __irq_exit_rcu+0x115/0x120 kernel/softirq.c:423
 sysvec_apic_timer_interrupt+0xba/0xd0 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581
 native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:60
 arch_safe_halt arch/x86/include/asm/paravirt.h:150 [inline]
 acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:524 [inline]
 acpi_idle_enter+0x30d/0x680 drivers/acpi/processor_idle.c:650
 cpuidle_enter_state+0x245/0x5d0 drivers/cpuidle/cpuidle.c:235
 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:346
 call_cpuidle kernel/sched/idle.c:126 [inline]
 cpuidle_idle_call kernel/sched/idle.c:214 [inline]
 do_idle+0x229/0x310 kernel/sched/idle.c:276
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:372
 rest_init+0xd8/0xe0 init/main.c:708
 arch_call_rest_init+0xa/0xb
 start_kernel+0x608/0x6d0 init/main.c:1048
 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.9.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/30 07:48 upstream 1127b219ce94 d5a3ae1f .config console log report ci2-upstream-kcsan-gce
2020/08/13 23:40 upstream 990f227371a4 54ce1ed6 .config console log report ci2-upstream-kcsan-gce
2020/08/02 05:33 upstream d52daa8620c6 8df85ed9 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.