Warning: Permanently added '10.128.1.0' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 65.312165][ C1] [ 65.315423][ C1] ======================================================== [ 65.324351][ C1] WARNING: possible irq lock inversion dependency detected [ 65.332351][ C1] 5.9.0-rc5-next-20200921-syzkaller #0 Not tainted [ 65.339272][ C1] -------------------------------------------------------- [ 65.346668][ C1] swapper/1/0 just changed the state of lock: [ 65.352807][ C1] ffff8882153f6908 (&group->lock){..-.}-{2:2}, at: _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.362987][ C1] but this lock took another, SOFTIRQ-READ-unsafe lock in the past: [ 65.372254][ C1] (&card->ctl_files_rwlock){.+.+}-{2:2} [ 65.372271][ C1] [ 65.372271][ C1] [ 65.372271][ C1] and interrupts could create inverse lock ordering between them. [ 65.372271][ C1] [ 65.393761][ C1] [ 65.393761][ C1] other info that might help us debug this: [ 65.402049][ C1] Possible interrupt unsafe locking scenario: [ 65.402049][ C1] [ 65.410753][ C1] CPU0 CPU1 [ 65.416291][ C1] ---- ---- [ 65.422071][ C1] lock(&card->ctl_files_rwlock); [ 65.427233][ C1] local_irq_disable(); [ 65.434277][ C1] lock(&group->lock); [ 65.441165][ C1] lock(&card->ctl_files_rwlock); [ 65.449168][ C1] [ 65.452725][ C1] lock(&group->lock); [ 65.457157][ C1] [ 65.457157][ C1] *** DEADLOCK *** [ 65.457157][ C1] [ 65.465471][ C1] 1 lock held by swapper/1/0: [ 65.470145][ C1] #0: ffffc90000da8d80 ((&dpcm->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 [ 65.479996][ C1] [ 65.479996][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 65.489712][ C1] -> (&card->ctl_files_rwlock){.+.+}-{2:2} { [ 65.496078][ C1] HARDIRQ-ON-R at: [ 65.500524][ C1] lock_acquire+0x1f2/0xaa0 [ 65.507126][ C1] _raw_read_lock+0x5b/0x70 [ 65.514130][ C1] snd_ctl_notify.part.0+0x36/0x550 [ 65.521385][ C1] snd_ctl_notify+0x8f/0xb0 [ 65.528137][ C1] __snd_ctl_add_replace+0x638/0x800 [ 65.535503][ C1] snd_ctl_add_replace+0x76/0x130 [ 65.542629][ C1] snd_dummy_probe+0xc22/0x1180 [ 65.549847][ C1] platform_drv_probe+0x87/0x140 [ 65.556979][ C1] really_probe+0x282/0x9f0 [ 65.563307][ C1] driver_probe_device+0xfe/0x1d0 [ 65.570353][ C1] __device_attach_driver+0x1c2/0x220 [ 65.577846][ C1] bus_for_each_drv+0x15f/0x1e0 [ 65.584654][ C1] __device_attach+0x228/0x470 [ 65.591509][ C1] bus_probe_device+0x1e4/0x290 [ 65.598652][ C1] device_add+0xb17/0x1c40 [ 65.605965][ C1] platform_device_add+0x34f/0x6d0 [ 65.613585][ C1] platform_device_register_full+0x38c/0x4e0 [ 65.622135][ C1] alsa_card_dummy_init+0x1e0/0x309 [ 65.631899][ C1] do_one_initcall+0x103/0x6f0 [ 65.640828][ C1] kernel_init_freeable+0x652/0x6d6 [ 65.649232][ C1] kernel_init+0xd/0x1b8 [ 65.655880][ C1] ret_from_fork+0x1f/0x30 [ 65.662596][ C1] SOFTIRQ-ON-R at: [ 65.667234][ C1] lock_acquire+0x1f2/0xaa0 [ 65.674008][ C1] _raw_read_lock+0x5b/0x70 [ 65.680474][ C1] snd_ctl_notify.part.0+0x36/0x550 [ 65.688477][ C1] snd_ctl_notify+0x8f/0xb0 [ 65.694812][ C1] __snd_ctl_add_replace+0x638/0x800 [ 65.702669][ C1] snd_ctl_add_replace+0x76/0x130 [ 65.709583][ C1] snd_dummy_probe+0xc22/0x1180 [ 65.716709][ C1] platform_drv_probe+0x87/0x140 [ 65.724381][ C1] really_probe+0x282/0x9f0 [ 65.731522][ C1] driver_probe_device+0xfe/0x1d0 [ 65.738602][ C1] __device_attach_driver+0x1c2/0x220 [ 65.746888][ C1] bus_for_each_drv+0x15f/0x1e0 [ 65.754280][ C1] __device_attach+0x228/0x470 [ 65.761358][ C1] bus_probe_device+0x1e4/0x290 [ 65.768495][ C1] device_add+0xb17/0x1c40 [ 65.774998][ C1] platform_device_add+0x34f/0x6d0 [ 65.782096][ C1] platform_device_register_full+0x38c/0x4e0 [ 65.790829][ C1] alsa_card_dummy_init+0x1e0/0x309 [ 65.798544][ C1] do_one_initcall+0x103/0x6f0 [ 65.806387][ C1] kernel_init_freeable+0x652/0x6d6 [ 65.813856][ C1] kernel_init+0xd/0x1b8 [ 65.820102][ C1] ret_from_fork+0x1f/0x30 [ 65.826477][ C1] (null) at: [ 65.830206][ C1] ================================================================================ [ 65.839626][ C1] UBSAN: array-index-out-of-bounds in kernel/locking/lockdep.c:2240:40 [ 65.848491][ C1] index 9 is out of range for type 'lock_trace *[9]' [ 65.855588][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.9.0-rc5-next-20200921-syzkaller #0 [ 65.865317][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 65.876848][ C1] Call Trace: [ 65.880310][ C1] [ 65.883230][ C1] dump_stack+0x198/0x1fb [ 65.887802][ C1] ubsan_epilogue+0xb/0x5a [ 65.892273][ C1] __ubsan_handle_out_of_bounds.cold+0x62/0x6c [ 65.898487][ C1] ? vprintk_func+0x95/0x1e0 [ 65.903130][ C1] print_shortest_lock_dependencies.cold+0x11c/0x2e2 [ 65.909936][ C1] print_irq_inversion_bug.part.0+0x2c6/0x2ee [ 65.916993][ C1] mark_lock.cold+0x57/0x74 [ 65.921773][ C1] ? lock_chain_count+0x20/0x20 [ 65.926753][ C1] ? lock_is_held_type+0xbb/0xf0 [ 65.931925][ C1] ? find_held_lock+0x2d/0x110 [ 65.937078][ C1] ? debug_object_activate+0x287/0x3e0 [ 65.942681][ C1] ? lock_downgrade+0x830/0x830 [ 65.948054][ C1] __lock_acquire+0x118a/0x56d0 [ 65.953082][ C1] ? lock_downgrade+0x830/0x830 [ 65.958261][ C1] ? lockdep_hardirqs_on_prepare+0x530/0x530 [ 65.964245][ C1] ? mark_lock+0xf7/0x2420 [ 65.968743][ C1] lock_acquire+0x1f2/0xaa0 [ 65.973246][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.979293][ C1] ? lock_release+0x890/0x890 [ 65.984327][ C1] ? find_held_lock+0x2d/0x110 [ 65.989282][ C1] ? loopback_jiffies_timer_function+0x188/0x220 [ 65.996491][ C1] ? _raw_spin_lock_irqsave+0xa9/0xd0 [ 66.001964][ C1] _raw_spin_lock_irqsave+0x94/0xd0 [ 66.007174][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 66.013506][ C1] _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 66.020057][ C1] snd_pcm_period_elapsed+0x24/0x250 [ 66.025514][ C1] loopback_jiffies_timer_function+0x1a8/0x220 [ 66.031688][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 66.038302][ C1] call_timer_fn+0x1a5/0x6b0 [ 66.043211][ C1] ? add_timer_on+0x4a0/0x4a0 [ 66.048167][ C1] ? lock_downgrade+0x830/0x830 [ 66.053641][ C1] ? _raw_spin_unlock_irq+0x1f/0x80 [ 66.059020][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 66.065754][ C1] __run_timers.part.0+0x67c/0xa50 [ 66.071268][ C1] ? call_timer_fn+0x6b0/0x6b0 [ 66.076333][ C1] ? lapic_next_event+0x4d/0x80 [ 66.081681][ C1] ? kvm_sched_clock_read+0x14/0x40 [ 66.087455][ C1] ? sched_clock+0x2a/0x40 [ 66.092321][ C1] ? sched_clock_cpu+0x18/0x1f0 [ 66.097538][ C1] ? hrtimer_interrupt+0x6f4/0x940 [ 66.103465][ C1] run_timer_softirq+0xb3/0x1d0 [ 66.108930][ C1] __do_softirq+0x203/0xab6 [ 66.113618][ C1] asm_call_on_stack+0xf/0x20 [ 66.118956][ C1] [ 66.121903][ C1] do_softirq_own_stack+0x9d/0xd0 [ 66.127134][ C1] irq_exit_rcu+0x235/0x280 [ 66.132071][ C1] sysvec_apic_timer_interrupt+0x51/0xf0 [ 66.138742][ C1] asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 66.145325][ C1] RIP: 0010:native_safe_halt+0xe/0x10 [ 66.151317][ C1] Code: 89 ef e8 15 61 76 f9 e9 86 fe ff ff 48 89 df e8 08 61 76 f9 e9 7b ff ff ff cc cc cc e9 07 00 00 00 0f 00 2d 74 b8 68 00 fb f4 90 e9 07 00 00 00 0f 00 2d 64 b8 68 00 f4 c3 cc cc 55 53 e8 09 [ 66.171815][ C1] RSP: 0018:ffffc90000d3fd80 EFLAGS: 00000293 [ 66.178041][ C1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff175e959 [ 66.186017][ C1] RDX: ffff8880a961a340 RSI: ffffffff88403123 RDI: 0000000000000000 [ 66.194399][ C1] RBP: ffff8880a72d4864 R08: 0000000000000001 R09: 0000000000000001 [ 66.202584][ C1] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 66.210693][ C1] R13: ffff8880a72d4800 R14: ffff8880a72d4864 R15: ffff8880a3e13004 [ 66.218887][ C1] ? acpi_idle_do_entry+0x1e3/0x330 [ 66.224312][ C1] acpi_idle_do_entry+0x1e8/0x330 [ 66.229403][ C1] acpi_idle_enter+0x35a/0x550 [ 66.234173][ C1] cpuidle_enter_state+0x1ab/0xd20 [ 66.240329][ C1] ? tick_nohz_idle_stop_tick+0x50b/0xbd0 [ 66.246052][ C1] cpuidle_enter+0x4a/0xa0 [ 66.250466][ C1] do_idle+0x48e/0x730 [ 66.254540][ C1] ? arch_cpu_idle_exit+0x70/0x70 [ 66.260002][ C1] ? _raw_spin_unlock_irqrestore+0x31/0x90 [ 66.266247][ C1] ? lockdep_hardirqs_on+0x53/0x100 [ 66.271441][ C1] cpu_startup_entry+0x14/0x20 [ 66.276408][ C1] secondary_startup_64_no_verify+0xa6/0xab [ 66.282901][ C1] ================================================================================ [ 66.292260][ C1] Kernel panic - not syncing: panic_on_warn set ... [ 66.299337][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.9.0-rc5-next-20200921-syzkaller #0 [ 66.308573][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 66.318713][ C1] Call Trace: [ 66.322095][ C1] [ 66.325110][ C1] dump_stack+0x198/0x1fb [ 66.329443][ C1] panic+0x382/0x7fb [ 66.333569][ C1] ? __warn_printk+0xf3/0xf3 [ 66.338451][ C1] ? secondary_startup_64_no_verify+0xa6/0xab [ 66.344809][ C1] ? ubsan_epilogue+0x3e/0x5a [ 66.349803][ C1] ? ubsan_epilogue+0x35/0x5a [ 66.354553][ C1] ubsan_epilogue+0x54/0x5a [ 66.359059][ C1] __ubsan_handle_out_of_bounds.cold+0x62/0x6c [ 66.365832][ C1] ? vprintk_func+0x95/0x1e0 [ 66.370464][ C1] print_shortest_lock_dependencies.cold+0x11c/0x2e2 [ 66.377374][ C1] print_irq_inversion_bug.part.0+0x2c6/0x2ee [ 66.383482][ C1] mark_lock.cold+0x57/0x74 [ 66.387980][ C1] ? lock_chain_count+0x20/0x20 [ 66.392826][ C1] ? lock_is_held_type+0xbb/0xf0 [ 66.397790][ C1] ? find_held_lock+0x2d/0x110 [ 66.402542][ C1] ? debug_object_activate+0x287/0x3e0 [ 66.408169][ C1] ? lock_downgrade+0x830/0x830 [ 66.413021][ C1] __lock_acquire+0x118a/0x56d0 [ 66.417965][ C1] ? lock_downgrade+0x830/0x830 [ 66.423067][ C1] ? lockdep_hardirqs_on_prepare+0x530/0x530 [ 66.429416][ C1] ? mark_lock+0xf7/0x2420 [ 66.434191][ C1] lock_acquire+0x1f2/0xaa0 [ 66.438879][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 66.445115][ C1] ? lock_release+0x890/0x890 [ 66.450007][ C1] ? find_held_lock+0x2d/0x110 [ 66.454891][ C1] ? loopback_jiffies_timer_function+0x188/0x220 [ 66.461665][ C1] ? _raw_spin_lock_irqsave+0xa9/0xd0 [ 66.467292][ C1] _raw_spin_lock_irqsave+0x94/0xd0 [ 66.472845][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 66.478745][ C1] _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 66.484466][ C1] snd_pcm_period_elapsed+0x24/0x250 [ 66.489801][ C1] loopback_jiffies_timer_function+0x1a8/0x220 [ 66.496077][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 66.502578][ C1] call_timer_fn+0x1a5/0x6b0 [ 66.507861][ C1] ? add_timer_on+0x4a0/0x4a0 [ 66.512847][ C1] ? lock_downgrade+0x830/0x830 [ 66.518050][ C1] ? _raw_spin_unlock_irq+0x1f/0x80 [ 66.523422][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 66.529919][ C1] __run_timers.part.0+0x67c/0xa50 [ 66.535322][ C1] ? call_timer_fn+0x6b0/0x6b0 [ 66.540171][ C1] ? lapic_next_event+0x4d/0x80 [ 66.545095][ C1] ? kvm_sched_clock_read+0x14/0x40 [ 66.550385][ C1] ? sched_clock+0x2a/0x40 [ 66.554969][ C1] ? sched_clock_cpu+0x18/0x1f0 [ 66.559939][ C1] ? hrtimer_interrupt+0x6f4/0x940 [ 66.565049][ C1] run_timer_softirq+0xb3/0x1d0 [ 66.569901][ C1] __do_softirq+0x203/0xab6 [ 66.574722][ C1] asm_call_on_stack+0xf/0x20 [ 66.579752][ C1] [ 66.582998][ C1] do_softirq_own_stack+0x9d/0xd0 [ 66.588115][ C1] irq_exit_rcu+0x235/0x280 [ 66.593112][ C1] sysvec_apic_timer_interrupt+0x51/0xf0 [ 66.598814][ C1] asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 66.604808][ C1] RIP: 0010:native_safe_halt+0xe/0x10 [ 66.610752][ C1] Code: 89 ef e8 15 61 76 f9 e9 86 fe ff ff 48 89 df e8 08 61 76 f9 e9 7b ff ff ff cc cc cc e9 07 00 00 00 0f 00 2d 74 b8 68 00 fb f4 90 e9 07 00 00 00 0f 00 2d 64 b8 68 00 f4 c3 cc cc 55 53 e8 09 [ 66.631074][ C1] RSP: 0018:ffffc90000d3fd80 EFLAGS: 00000293 [ 66.637264][ C1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff175e959 [ 66.645246][ C1] RDX: ffff8880a961a340 RSI: ffffffff88403123 RDI: 0000000000000000 [ 66.654311][ C1] RBP: ffff8880a72d4864 R08: 0000000000000001 R09: 0000000000000001 [ 66.664271][ C1] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 66.673425][ C1] R13: ffff8880a72d4800 R14: ffff8880a72d4864 R15: ffff8880a3e13004 [ 66.682072][ C1] ? acpi_idle_do_entry+0x1e3/0x330 [ 66.687631][ C1] acpi_idle_do_entry+0x1e8/0x330 [ 66.693297][ C1] acpi_idle_enter+0x35a/0x550 [ 66.698234][ C1] cpuidle_enter_state+0x1ab/0xd20 [ 66.703790][ C1] ? tick_nohz_idle_stop_tick+0x50b/0xbd0 [ 66.709836][ C1] cpuidle_enter+0x4a/0xa0 [ 66.714444][ C1] do_idle+0x48e/0x730 [ 66.718660][ C1] ? arch_cpu_idle_exit+0x70/0x70 [ 66.724382][ C1] ? _raw_spin_unlock_irqrestore+0x31/0x90 [ 66.730794][ C1] ? lockdep_hardirqs_on+0x53/0x100 [ 66.736533][ C1] cpu_startup_entry+0x14/0x20 [ 66.742127][ C1] secondary_startup_64_no_verify+0xa6/0xab [ 66.750010][ C1] Kernel Offset: disabled [ 66.755425][ C1] Rebooting in 86400 seconds..