Warning: Permanently added '10.128.0.250' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 64.854904][ C0] [ 64.857239][ C0] ======================================================== [ 64.864407][ C0] WARNING: possible irq lock inversion dependency detected [ 64.871574][ C0] 5.9.0-rc4-next-20200911-syzkaller #0 Not tainted [ 64.878038][ C0] -------------------------------------------------------- [ 64.885199][ C0] swapper/0/0 just changed the state of lock: [ 64.891230][ C0] ffff88809a296108 (&group->lock){..-.}-{2:2}, at: _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 64.901116][ C0] but this lock took another, SOFTIRQ-READ-unsafe lock in the past: [ 64.909058][ C0] (&card->ctl_files_rwlock){.+.+}-{2:2} [ 64.909071][ C0] [ 64.909071][ C0] [ 64.909071][ C0] and interrupts could create inverse lock ordering between them. [ 64.909071][ C0] [ 64.929204][ C0] [ 64.929204][ C0] other info that might help us debug this: [ 64.937243][ C0] Possible interrupt unsafe locking scenario: [ 64.937243][ C0] [ 64.945542][ C0] CPU0 CPU1 [ 64.950878][ C0] ---- ---- [ 64.956220][ C0] lock(&card->ctl_files_rwlock); [ 64.961310][ C0] local_irq_disable(); [ 64.968045][ C0] lock(&group->lock); [ 64.974687][ C0] lock(&card->ctl_files_rwlock); [ 64.982294][ C0] [ 64.985717][ C0] lock(&group->lock); [ 64.990027][ C0] [ 64.990027][ C0] *** DEADLOCK *** [ 64.990027][ C0] [ 64.998141][ C0] 1 lock held by swapper/0/0: [ 65.002781][ C0] #0: ffffc90000007d80 ((&dpcm->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 [ 65.012045][ C0] [ 65.012045][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 65.021393][ C0] -> (&card->ctl_files_rwlock){.+.+}-{2:2} { [ 65.027433][ C0] HARDIRQ-ON-R at: [ 65.031489][ C0] lock_acquire+0x1f2/0xaa0 [ 65.037794][ C0] _raw_read_lock+0x5b/0x70 [ 65.044095][ C0] snd_ctl_notify.part.0+0x36/0x550 [ 65.051124][ C0] snd_ctl_notify+0x8f/0xb0 [ 65.057424][ C0] __snd_ctl_add_replace+0x638/0x800 [ 65.064523][ C0] snd_ctl_add_replace+0x76/0x130 [ 65.071361][ C0] snd_dummy_probe+0xbbf/0x1050 [ 65.078008][ C0] platform_drv_probe+0x87/0x140 [ 65.084747][ C0] really_probe+0x282/0x9f0 [ 65.091046][ C0] driver_probe_device+0xfe/0x1d0 [ 65.097870][ C0] __device_attach_driver+0x1c2/0x220 [ 65.105091][ C0] bus_for_each_drv+0x15f/0x1e0 [ 65.111738][ C0] __device_attach+0x228/0x470 [ 65.118300][ C0] bus_probe_device+0x1e4/0x290 [ 65.124946][ C0] device_add+0xb17/0x1c40 [ 65.131155][ C0] platform_device_add+0x34f/0x6d0 [ 65.138067][ C0] platform_device_register_full+0x38c/0x4e0 [ 65.145843][ C0] alsa_card_dummy_init+0x1cc/0x2e0 [ 65.152924][ C0] do_one_initcall+0x103/0x6f0 [ 65.160098][ C0] kernel_init_freeable+0x5e9/0x66d [ 65.167090][ C0] kernel_init+0xd/0x1c0 [ 65.173126][ C0] ret_from_fork+0x1f/0x30 [ 65.179329][ C0] SOFTIRQ-ON-R at: [ 65.183370][ C0] lock_acquire+0x1f2/0xaa0 [ 65.189667][ C0] _raw_read_lock+0x5b/0x70 [ 65.195964][ C0] snd_ctl_notify.part.0+0x36/0x550 [ 65.202954][ C0] snd_ctl_notify+0x8f/0xb0 [ 65.209251][ C0] __snd_ctl_add_replace+0x638/0x800 [ 65.216326][ C0] snd_ctl_add_replace+0x76/0x130 [ 65.223143][ C0] snd_dummy_probe+0xbbf/0x1050 [ 65.229799][ C0] platform_drv_probe+0x87/0x140 [ 65.236529][ C0] really_probe+0x282/0x9f0 [ 65.242826][ C0] driver_probe_device+0xfe/0x1d0 [ 65.249642][ C0] __device_attach_driver+0x1c2/0x220 [ 65.256805][ C0] bus_for_each_drv+0x15f/0x1e0 [ 65.263459][ C0] __device_attach+0x228/0x470 [ 65.270017][ C0] bus_probe_device+0x1e4/0x290 [ 65.276658][ C0] device_add+0xb17/0x1c40 [ 65.282879][ C0] platform_device_add+0x34f/0x6d0 [ 65.289782][ C0] platform_device_register_full+0x38c/0x4e0 [ 65.297557][ C0] alsa_card_dummy_init+0x1cc/0x2e0 [ 65.304549][ C0] do_one_initcall+0x103/0x6f0 [ 65.311104][ C0] kernel_init_freeable+0x5e9/0x66d [ 65.318093][ C0] kernel_init+0xd/0x1c0 [ 65.324128][ C0] ret_from_fork+0x1f/0x30 [ 65.330332][ C0] (null) at: [ 65.333872][ C0] general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN [ 65.345547][ C0] KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] [ 65.353926][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.9.0-rc4-next-20200911-syzkaller #0 [ 65.363010][ C0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 65.373041][ C0] RIP: 0010:print_shortest_lock_dependencies.cold+0x110/0x2af [ 65.380477][ C0] Code: 48 8b 04 24 48 c1 e8 03 42 80 3c 20 00 74 09 48 8b 3c 24 e8 5b 11 da f9 48 8b 04 24 48 8b 00 48 8d 78 14 48 89 fa 48 c1 ea 03 <42> 0f b6 0c 22 48 89 fa 83 e2 07 83 c2 03 38 ca 7c 08 84 c9 0f 85 [ 65.400050][ C0] RSP: 0018:ffffc90000007898 EFLAGS: 00010003 [ 65.406086][ C0] RAX: 0000000000000001 RBX: ffffffff8cbdd200 RCX: 0000000000000000 [ 65.414027][ C0] RDX: 0000000000000002 RSI: ffffffff815c0ec7 RDI: 0000000000000015 [ 65.421968][ C0] RBP: ffffc900000079c8 R08: 0000000000000004 R09: ffff8880ae620f8b [ 65.429911][ C0] R10: 0000000000000000 R11: 6c756e2820202020 R12: dffffc0000000000 [ 65.437853][ C0] R13: ffffffff8c9e71d0 R14: 0000000000000009 R15: 0000000000000001 [ 65.445796][ C0] FS: 0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 [ 65.454704][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 65.461257][ C0] CR2: 000000000043e710 CR3: 000000009330d000 CR4: 00000000001506f0 [ 65.469207][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 65.477149][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 65.485090][ C0] Call Trace: [ 65.488437][ C0] [ 65.491267][ C0] print_irq_inversion_bug.part.0+0x2c6/0x2ee [ 65.497303][ C0] mark_lock.cold+0x38/0x10d [ 65.501863][ C0] ? lock_chain_count+0x20/0x20 [ 65.506685][ C0] ? lock_is_held_type+0xbb/0xf0 [ 65.511590][ C0] ? find_held_lock+0x2d/0x110 [ 65.516334][ C0] ? debug_object_activate+0x287/0x3e0 [ 65.521762][ C0] ? lock_downgrade+0x830/0x830 [ 65.526583][ C0] __lock_acquire+0x117d/0x55d0 [ 65.531403][ C0] ? lock_downgrade+0x830/0x830 [ 65.536225][ C0] ? lockdep_hardirqs_on_prepare+0x530/0x530 [ 65.542173][ C0] ? mark_lock+0xf7/0x2300 [ 65.546559][ C0] lock_acquire+0x1f2/0xaa0 [ 65.551034][ C0] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.556897][ C0] ? lock_release+0x890/0x890 [ 65.561544][ C0] ? find_held_lock+0x2d/0x110 [ 65.566281][ C0] ? loopback_jiffies_timer_function+0x188/0x220 [ 65.572579][ C0] ? _raw_spin_lock_irqsave+0xa9/0xd0 [ 65.577921][ C0] _raw_spin_lock_irqsave+0x94/0xd0 [ 65.583100][ C0] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.588962][ C0] _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.594667][ C0] snd_pcm_period_elapsed+0x24/0x250 [ 65.599937][ C0] loopback_jiffies_timer_function+0x1a8/0x220 [ 65.606065][ C0] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 65.612534][ C0] call_timer_fn+0x1a5/0x6b0 [ 65.617096][ C0] ? add_timer_on+0x450/0x450 [ 65.621742][ C0] ? lock_downgrade+0x830/0x830 [ 65.626564][ C0] ? rwlock_bug.part.0+0x90/0x90 [ 65.631469][ C0] ? _raw_spin_unlock_irq+0x1f/0x80 [ 65.636638][ C0] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 65.643119][ C0] __run_timers.part.0+0x67c/0xa50 [ 65.648198][ C0] ? call_timer_fn+0x6b0/0x6b0 [ 65.652933][ C0] ? lapic_next_event+0x4d/0x80 [ 65.657755][ C0] ? clockevents_program_event+0x12b/0x350 [ 65.663534][ C0] ? kvm_sched_clock_read+0x14/0x40 [ 65.668700][ C0] ? sched_clock+0x2a/0x40 [ 65.673085][ C0] ? sched_clock_cpu+0x18/0x1b0 [ 65.677903][ C0] ? hrtimer_interrupt+0x6ea/0x930 [ 65.682984][ C0] run_timer_softirq+0xae/0x1a0 [ 65.687806][ C0] __do_softirq+0x202/0xa42 [ 65.692279][ C0] asm_call_on_stack+0xf/0x20 [ 65.696933][ C0] [ 65.699863][ C0] do_softirq_own_stack+0x9d/0xd0 [ 65.704868][ C0] irq_exit_rcu+0x235/0x280 [ 65.709353][ C0] sysvec_apic_timer_interrupt+0x51/0xf0 [ 65.714956][ C0] asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 65.720907][ C0] RIP: 0010:native_safe_halt+0xe/0x10 [ 65.726251][ C0] Code: ff 4c 89 ef e8 93 d9 af f9 e9 8e fe ff ff 48 89 df e8 86 d9 af f9 eb 8a cc cc cc cc e9 07 00 00 00 0f 00 2d 84 87 65 00 fb f4 90 e9 07 00 00 00 0f 00 2d 74 87 65 00 f4 c3 cc cc 55 53 e8 69 [ 65.745834][ C0] RSP: 0018:ffffffff89c07cd8 EFLAGS: 00000293 [ 65.751872][ C0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff15cacb9 [ 65.759814][ C0] RDX: ffffffff89c9b040 RSI: ffffffff88034020 RDI: 0000000000000000 [ 65.767756][ C0] RBP: ffff8880a6f08864 R08: 0000000000000001 R09: 0000000000000001 [ 65.775698][ C0] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8880a6f08864 [ 65.783639][ C0] R13: 1ffffffff1380fa5 R14: ffff8880a6f08865 R15: 0000000000000001 [ 65.791600][ C0] ? acpi_safe_halt+0x90/0x180 [ 65.796340][ C0] acpi_safe_halt+0x95/0x180 [ 65.800904][ C0] acpi_idle_do_entry+0x15c/0x1b0 [ 65.805936][ C0] acpi_idle_enter+0x403/0xac0 [ 65.810672][ C0] ? acpi_idle_enter_bm+0x2d0/0x2d0 [ 65.815844][ C0] cpuidle_enter_state+0x150/0xa70 [ 65.820960][ C0] ? tick_nohz_idle_stop_tick+0x5af/0xbc0 [ 65.826659][ C0] cpuidle_enter+0x4a/0xa0 [ 65.831089][ C0] do_idle+0x48e/0x730 [ 65.835131][ C0] ? arch_cpu_idle_exit+0x70/0x70 [ 65.840127][ C0] ? trace_init_perf_perm_irq_work_exit+0xe/0xe [ 65.846339][ C0] cpu_startup_entry+0x14/0x20 [ 65.851086][ C0] start_kernel+0x490/0x4b1 [ 65.855572][ C0] secondary_startup_64_no_verify+0xa6/0xab [ 65.861433][ C0] Modules linked in: [ 65.865309][ C0] ---[ end trace 1dab8bf5c5b83420 ]--- [ 65.870848][ C0] RIP: 0010:print_shortest_lock_dependencies.cold+0x110/0x2af [ 65.878277][ C0] Code: 48 8b 04 24 48 c1 e8 03 42 80 3c 20 00 74 09 48 8b 3c 24 e8 5b 11 da f9 48 8b 04 24 48 8b 00 48 8d 78 14 48 89 fa 48 c1 ea 03 <42> 0f b6 0c 22 48 89 fa 83 e2 07 83 c2 03 38 ca 7c 08 84 c9 0f 85 [ 65.897851][ C0] RSP: 0018:ffffc90000007898 EFLAGS: 00010003 [ 65.903887][ C0] RAX: 0000000000000001 RBX: ffffffff8cbdd200 RCX: 0000000000000000 [ 65.911842][ C0] RDX: 0000000000000002 RSI: ffffffff815c0ec7 RDI: 0000000000000015 [ 65.919793][ C0] RBP: ffffc900000079c8 R08: 0000000000000004 R09: ffff8880ae620f8b [ 65.927747][ C0] R10: 0000000000000000 R11: 6c756e2820202020 R12: dffffc0000000000 [ 65.935694][ C0] R13: ffffffff8c9e71d0 R14: 0000000000000009 R15: 0000000000000001 [ 65.943639][ C0] FS: 0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 [ 65.952572][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 65.959127][ C0] CR2: 000000000043e710 CR3: 000000009330d000 CR4: 00000000001506f0 [ 65.967075][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 65.975043][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 65.982996][ C0] Kernel panic - not syncing: Fatal exception in interrupt [ 65.991409][ C0] Kernel Offset: disabled [ 65.995722][ C0] Rebooting in 86400 seconds..