Warning: Permanently added '10.128.1.26' (ECDSA) to the list of known hosts. executing program [ 61.540987][ C1] [ 61.543390][ C1] ======================================================== [ 61.550649][ C1] WARNING: possible irq lock inversion dependency detected [ 61.557876][ C1] 5.9.0-rc5-next-20200918-syzkaller #0 Not tainted [ 61.564393][ C1] -------------------------------------------------------- [ 61.571564][ C1] swapper/1/0 just changed the state of lock: [ 61.577602][ C1] ffff888214e9b908 (&group->lock){..-.}-{2:2}, at: _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 61.587618][ C1] but this lock took another, SOFTIRQ-READ-unsafe lock in the past: [ 61.595594][ C1] (&card->ctl_files_rwlock){.+.+}-{2:2} [ 61.595610][ C1] [ 61.595610][ C1] [ 61.595610][ C1] and interrupts could create inverse lock ordering between them. [ 61.595610][ C1] [ 61.616470][ C1] [ 61.616470][ C1] other info that might help us debug this: [ 61.624525][ C1] Possible interrupt unsafe locking scenario: [ 61.624525][ C1] [ 61.632826][ C1] CPU0 CPU1 [ 61.638168][ C1] ---- ---- [ 61.643507][ C1] lock(&card->ctl_files_rwlock); [ 61.648611][ C1] local_irq_disable(); [ 61.655353][ C1] lock(&group->lock); [ 61.662018][ C1] lock(&card->ctl_files_rwlock); [ 61.669622][ C1] [ 61.673050][ C1] lock(&group->lock); [ 61.677368][ C1] [ 61.677368][ C1] *** DEADLOCK *** [ 61.677368][ C1] [ 61.685507][ C1] 1 lock held by swapper/1/0: [ 61.690164][ C1] #0: ffffc90000da8d80 ((&dpcm->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 [ 61.699453][ C1] [ 61.699453][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 61.708807][ C1] -> (&card->ctl_files_rwlock){.+.+}-{2:2} { [ 61.714878][ C1] HARDIRQ-ON-R at: [ 61.718942][ C1] lock_acquire+0x1f2/0xaa0 [ 61.725242][ C1] _raw_read_lock+0x5b/0x70 [ 61.731562][ C1] snd_ctl_notify.part.0+0x36/0x550 [ 61.738593][ C1] snd_ctl_notify+0x8f/0xb0 [ 61.744912][ C1] __snd_ctl_add_replace+0x638/0x800 [ 61.752015][ C1] snd_ctl_add_replace+0x76/0x130 [ 61.759004][ C1] snd_dummy_probe+0xc22/0x1180 [ 61.765794][ C1] platform_drv_probe+0x87/0x140 [ 61.772538][ C1] really_probe+0x282/0x9f0 [ 61.778872][ C1] driver_probe_device+0xfe/0x1d0 [ 61.785694][ C1] __device_attach_driver+0x1c2/0x220 [ 61.792881][ C1] bus_for_each_drv+0x15f/0x1e0 [ 61.799570][ C1] __device_attach+0x228/0x470 [ 61.806149][ C1] bus_probe_device+0x1e4/0x290 [ 61.812810][ C1] device_add+0xb17/0x1c40 [ 61.819029][ C1] platform_device_add+0x34f/0x6d0 [ 61.825955][ C1] platform_device_register_full+0x38c/0x4e0 [ 61.833741][ C1] alsa_card_dummy_init+0x1e0/0x309 [ 61.840755][ C1] do_one_initcall+0x103/0x6f0 [ 61.847330][ C1] kernel_init_freeable+0x652/0x6d6 [ 61.854344][ C1] kernel_init+0xd/0x1b8 [ 61.860428][ C1] ret_from_fork+0x1f/0x30 [ 61.866640][ C1] SOFTIRQ-ON-R at: [ 61.870690][ C1] lock_acquire+0x1f2/0xaa0 [ 61.876991][ C1] _raw_read_lock+0x5b/0x70 [ 61.883294][ C1] snd_ctl_notify.part.0+0x36/0x550 [ 61.890286][ C1] snd_ctl_notify+0x8f/0xb0 [ 61.896587][ C1] __snd_ctl_add_replace+0x638/0x800 [ 61.903685][ C1] snd_ctl_add_replace+0x76/0x130 [ 61.910607][ C1] snd_dummy_probe+0xc22/0x1180 [ 61.917257][ C1] platform_drv_probe+0x87/0x140 [ 61.923995][ C1] really_probe+0x282/0x9f0 [ 61.930295][ C1] driver_probe_device+0xfe/0x1d0 [ 61.937134][ C1] __device_attach_driver+0x1c2/0x220 [ 61.944308][ C1] bus_for_each_drv+0x15f/0x1e0 [ 61.951055][ C1] __device_attach+0x228/0x470 [ 61.957617][ C1] bus_probe_device+0x1e4/0x290 [ 61.964280][ C1] device_add+0xb17/0x1c40 [ 61.970495][ C1] platform_device_add+0x34f/0x6d0 [ 61.977409][ C1] platform_device_register_full+0x38c/0x4e0 [ 61.985221][ C1] alsa_card_dummy_init+0x1e0/0x309 [ 61.992224][ C1] do_one_initcall+0x103/0x6f0 [ 61.998788][ C1] kernel_init_freeable+0x652/0x6d6 [ 62.005803][ C1] kernel_init+0xd/0x1b8 [ 62.011872][ C1] ret_from_fork+0x1f/0x30 [ 62.018122][ C1] (null) at: [ 62.021683][ C1] ================================================================================ [ 62.030934][ C1] UBSAN: array-index-out-of-bounds in kernel/locking/lockdep.c:2240:40 [ 62.039142][ C1] index 9 is out of range for type 'lock_trace *[9]' [ 62.045797][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.9.0-rc5-next-20200918-syzkaller #0 [ 62.054875][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 62.064908][ C1] Call Trace: [ 62.068182][ C1] [ 62.071983][ C1] dump_stack+0x198/0x1fb [ 62.076289][ C1] ubsan_epilogue+0xb/0x5a [ 62.080685][ C1] __ubsan_handle_out_of_bounds.cold+0x62/0x6c [ 62.086905][ C1] ? vprintk_func+0x95/0x1e0 [ 62.091481][ C1] print_shortest_lock_dependencies.cold+0x11c/0x2e2 [ 62.098136][ C1] print_irq_inversion_bug.part.0+0x2c6/0x2ee [ 62.104196][ C1] mark_lock.cold+0x57/0x74 [ 62.108685][ C1] ? lock_chain_count+0x20/0x20 [ 62.113511][ C1] ? lock_is_held_type+0xbb/0xf0 [ 62.118448][ C1] ? find_held_lock+0x2d/0x110 [ 62.123206][ C1] ? debug_object_activate+0x287/0x3e0 [ 62.128640][ C1] ? lock_downgrade+0x830/0x830 [ 62.133468][ C1] __lock_acquire+0x118a/0x56d0 [ 62.138299][ C1] ? lock_downgrade+0x830/0x830 [ 62.143141][ C1] ? lockdep_hardirqs_on_prepare+0x530/0x530 [ 62.149109][ C1] ? mark_lock+0xf7/0x2420 [ 62.153530][ C1] lock_acquire+0x1f2/0xaa0 [ 62.158027][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 62.163944][ C1] ? lock_release+0x890/0x890 [ 62.168687][ C1] ? find_held_lock+0x2d/0x110 [ 62.173433][ C1] ? loopback_jiffies_timer_function+0x188/0x220 [ 62.179752][ C1] ? _raw_spin_lock_irqsave+0xa9/0xd0 [ 62.185102][ C1] _raw_spin_lock_irqsave+0x94/0xd0 [ 62.190300][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 62.196183][ C1] _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 62.201901][ C1] snd_pcm_period_elapsed+0x24/0x250 [ 62.207167][ C1] loopback_jiffies_timer_function+0x1a8/0x220 [ 62.214176][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 62.220665][ C1] call_timer_fn+0x1a5/0x6b0 [ 62.225231][ C1] ? add_timer_on+0x4a0/0x4a0 [ 62.229894][ C1] ? lock_downgrade+0x830/0x830 [ 62.234732][ C1] ? rwlock_bug.part.0+0x90/0x90 [ 62.239740][ C1] ? _raw_spin_unlock_irq+0x1f/0x80 [ 62.244917][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 62.251402][ C1] __run_timers.part.0+0x67c/0xa50 [ 62.256492][ C1] ? call_timer_fn+0x6b0/0x6b0 [ 62.261441][ C1] ? lapic_next_event+0x4d/0x80 [ 62.266307][ C1] ? kvm_sched_clock_read+0x14/0x40 [ 62.271522][ C1] ? sched_clock+0x2a/0x40 [ 62.276449][ C1] ? sched_clock_cpu+0x18/0x1f0 [ 62.281317][ C1] ? hrtimer_interrupt+0x6f4/0x940 [ 62.286419][ C1] run_timer_softirq+0xb3/0x1d0 [ 62.291249][ C1] __do_softirq+0x203/0xab6 [ 62.295727][ C1] asm_call_on_stack+0xf/0x20 [ 62.300556][ C1] [ 62.303482][ C1] do_softirq_own_stack+0x9d/0xd0 [ 62.308489][ C1] irq_exit_rcu+0x235/0x280 [ 62.312974][ C1] sysvec_apic_timer_interrupt+0x51/0xf0 [ 62.318602][ C1] asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 62.324603][ C1] RIP: 0010:native_safe_halt+0xe/0x10 [ 62.329948][ C1] Code: 89 ef e8 a5 99 76 f9 e9 86 fe ff ff 48 89 df e8 98 99 76 f9 e9 7b ff ff ff cc cc cc e9 07 00 00 00 0f 00 2d c4 14 49 00 fb f4 90 e9 07 00 00 00 0f 00 2d b4 14 49 00 f4 c3 cc cc 55 53 e8 09 [ 62.349528][ C1] RSP: 0018:ffffc90000d3fd80 EFLAGS: 00000293 [ 62.355586][ C1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff171e639 [ 62.363536][ C1] RDX: ffff8880a961a340 RSI: ffffffff883fd4d3 RDI: 0000000000000000 [ 62.371497][ C1] RBP: ffff8880a79de064 R08: 0000000000000001 R09: 0000000000000001 [ 62.379444][ C1] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 62.387393][ C1] R13: ffff8880a79de000 R14: ffff8880a79de064 R15: ffff888218627804 [ 62.395350][ C1] ? acpi_idle_do_entry+0x1e3/0x330 [ 62.400531][ C1] acpi_idle_do_entry+0x1e8/0x330 [ 62.405528][ C1] acpi_idle_enter+0x35a/0x550 [ 62.410272][ C1] cpuidle_enter_state+0x1ab/0xd20 [ 62.415372][ C1] ? tick_nohz_idle_stop_tick+0x50b/0xbd0 [ 62.421069][ C1] cpuidle_enter+0x4a/0xa0 [ 62.425473][ C1] do_idle+0x48e/0x730 [ 62.429524][ C1] ? arch_cpu_idle_exit+0x70/0x70 [ 62.434538][ C1] cpu_startup_entry+0x14/0x20 [ 62.439277][ C1] secondary_startup_64_no_verify+0xa6/0xab [ 62.445144][ C1] ================================================================================ [ 62.454425][ C1] Kernel panic - not syncing: panic_on_warn set ... [ 62.461001][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.9.0-rc5-next-20200918-syzkaller #0 [ 62.470266][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 62.480304][ C1] Call Trace: [ 62.483577][ C1] [ 62.486409][ C1] dump_stack+0x198/0x1fb [ 62.490729][ C1] panic+0x382/0x7fb [ 62.494610][ C1] ? __warn_printk+0xf3/0xf3 [ 62.499190][ C1] ? secondary_startup_64_no_verify+0xa6/0xab [ 62.505243][ C1] ? ubsan_epilogue+0x3e/0x5a [ 62.509911][ C1] ? ubsan_epilogue+0x35/0x5a [ 62.514575][ C1] ubsan_epilogue+0x54/0x5a [ 62.519060][ C1] __ubsan_handle_out_of_bounds.cold+0x62/0x6c [ 62.525739][ C1] ? vprintk_func+0x95/0x1e0 [ 62.530351][ C1] print_shortest_lock_dependencies.cold+0x11c/0x2e2 [ 62.537016][ C1] print_irq_inversion_bug.part.0+0x2c6/0x2ee [ 62.543071][ C1] mark_lock.cold+0x57/0x74 [ 62.547584][ C1] ? lock_chain_count+0x20/0x20 [ 62.552426][ C1] ? lock_is_held_type+0xbb/0xf0 [ 62.557360][ C1] ? find_held_lock+0x2d/0x110 [ 62.562115][ C1] ? debug_object_activate+0x287/0x3e0 [ 62.568169][ C1] ? lock_downgrade+0x830/0x830 [ 62.573005][ C1] __lock_acquire+0x118a/0x56d0 [ 62.577833][ C1] ? lock_downgrade+0x830/0x830 [ 62.582672][ C1] ? lockdep_hardirqs_on_prepare+0x530/0x530 [ 62.588638][ C1] ? mark_lock+0xf7/0x2420 [ 62.593043][ C1] lock_acquire+0x1f2/0xaa0 [ 62.597535][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 62.603406][ C1] ? lock_release+0x890/0x890 [ 62.608078][ C1] ? find_held_lock+0x2d/0x110 [ 62.612818][ C1] ? loopback_jiffies_timer_function+0x188/0x220 [ 62.619120][ C1] ? _raw_spin_lock_irqsave+0xa9/0xd0 [ 62.624467][ C1] _raw_spin_lock_irqsave+0x94/0xd0 [ 62.629642][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 62.635595][ C1] _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 62.641293][ C1] snd_pcm_period_elapsed+0x24/0x250 [ 62.647259][ C1] loopback_jiffies_timer_function+0x1a8/0x220 [ 62.653402][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 62.659887][ C1] call_timer_fn+0x1a5/0x6b0 [ 62.664452][ C1] ? add_timer_on+0x4a0/0x4a0 [ 62.669122][ C1] ? lock_downgrade+0x830/0x830 [ 62.674497][ C1] ? rwlock_bug.part.0+0x90/0x90 [ 62.679494][ C1] ? _raw_spin_unlock_irq+0x1f/0x80 [ 62.684667][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 62.691144][ C1] __run_timers.part.0+0x67c/0xa50 [ 62.696228][ C1] ? call_timer_fn+0x6b0/0x6b0 [ 62.700963][ C1] ? lapic_next_event+0x4d/0x80 [ 62.705790][ C1] ? kvm_sched_clock_read+0x14/0x40 [ 62.710961][ C1] ? sched_clock+0x2a/0x40 [ 62.715367][ C1] ? sched_clock_cpu+0x18/0x1f0 [ 62.720192][ C1] ? hrtimer_interrupt+0x6f4/0x940 [ 62.725550][ C1] run_timer_softirq+0xb3/0x1d0 [ 62.730396][ C1] __do_softirq+0x203/0xab6 [ 62.734882][ C1] asm_call_on_stack+0xf/0x20 [ 62.739527][ C1] [ 62.742463][ C1] do_softirq_own_stack+0x9d/0xd0 [ 62.747459][ C1] irq_exit_rcu+0x235/0x280 [ 62.751938][ C1] sysvec_apic_timer_interrupt+0x51/0xf0 [ 62.757549][ C1] asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 62.764562][ C1] RIP: 0010:native_safe_halt+0xe/0x10 [ 62.769912][ C1] Code: 89 ef e8 a5 99 76 f9 e9 86 fe ff ff 48 89 df e8 98 99 76 f9 e9 7b ff ff ff cc cc cc e9 07 00 00 00 0f 00 2d c4 14 49 00 fb f4 90 e9 07 00 00 00 0f 00 2d b4 14 49 00 f4 c3 cc cc 55 53 e8 09 [ 62.789496][ C1] RSP: 0018:ffffc90000d3fd80 EFLAGS: 00000293 [ 62.795580][ C1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff171e639 [ 62.803527][ C1] RDX: ffff8880a961a340 RSI: ffffffff883fd4d3 RDI: 0000000000000000 [ 62.811483][ C1] RBP: ffff8880a79de064 R08: 0000000000000001 R09: 0000000000000001 [ 62.819479][ C1] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 62.827428][ C1] R13: ffff8880a79de000 R14: ffff8880a79de064 R15: ffff888218627804 [ 62.835388][ C1] ? acpi_idle_do_entry+0x1e3/0x330 [ 62.840562][ C1] acpi_idle_do_entry+0x1e8/0x330 [ 62.845565][ C1] acpi_idle_enter+0x35a/0x550 [ 62.850305][ C1] cpuidle_enter_state+0x1ab/0xd20 [ 62.855419][ C1] ? tick_nohz_idle_stop_tick+0x50b/0xbd0 [ 62.861135][ C1] cpuidle_enter+0x4a/0xa0 [ 62.865539][ C1] do_idle+0x48e/0x730 [ 62.869583][ C1] ? arch_cpu_idle_exit+0x70/0x70 [ 62.874596][ C1] cpu_startup_entry+0x14/0x20 [ 62.879351][ C1] secondary_startup_64_no_verify+0xa6/0xab [ 62.886637][ C1] Kernel Offset: disabled [ 62.890952][ C1] Rebooting in 86400 seconds..