Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.13' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 69.924111][ C1] [ 69.926610][ C1] ======================================================== [ 69.933873][ C1] WARNING: possible irq lock inversion dependency detected [ 69.941139][ C1] 5.9.0-rc6-next-20200922-syzkaller #0 Not tainted [ 69.947626][ C1] -------------------------------------------------------- [ 69.954802][ C1] swapper/1/0 just changed the state of lock: [ 69.960883][ C1] ffff888099dbb108 (&group->lock){..-.}-{2:2}, at: _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 69.970833][ C1] but this lock took another, SOFTIRQ-READ-unsafe lock in the past: [ 69.978868][ C1] (&card->ctl_files_rwlock){.+.+}-{2:2} [ 69.978965][ C1] [ 69.978965][ C1] [ 69.978965][ C1] and interrupts could create inverse lock ordering between them. [ 69.978965][ C1] [ 69.999001][ C1] [ 69.999001][ C1] other info that might help us debug this: [ 70.007040][ C1] Possible interrupt unsafe locking scenario: [ 70.007040][ C1] [ 70.015338][ C1] CPU0 CPU1 [ 70.020686][ C1] ---- ---- [ 70.026061][ C1] lock(&card->ctl_files_rwlock); [ 70.031157][ C1] local_irq_disable(); [ 70.037902][ C1] lock(&group->lock); [ 70.044646][ C1] lock(&card->ctl_files_rwlock); [ 70.052254][ C1] [ 70.055690][ C1] lock(&group->lock); [ 70.060034][ C1] [ 70.060034][ C1] *** DEADLOCK *** [ 70.060034][ C1] [ 70.068174][ C1] 1 lock held by swapper/1/0: [ 70.072825][ C1] #0: ffffc90000da8d80 ((&dpcm->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 [ 70.082130][ C1] [ 70.082130][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 70.091518][ C1] -> (&card->ctl_files_rwlock){.+.+}-{2:2} { [ 70.097763][ C1] HARDIRQ-ON-R at: [ 70.101855][ C1] lock_acquire+0x1f2/0xaa0 [ 70.108232][ C1] _raw_read_lock+0x5b/0x70 [ 70.114545][ C1] snd_ctl_notify.part.0+0x36/0x550 [ 70.121614][ C1] snd_ctl_notify+0x8f/0xb0 [ 70.127921][ C1] __snd_ctl_add_replace+0x638/0x800 [ 70.135044][ C1] snd_ctl_add_replace+0x76/0x130 [ 70.142098][ C1] snd_dummy_probe+0xc22/0x1180 [ 70.148762][ C1] platform_drv_probe+0x87/0x140 [ 70.155502][ C1] really_probe+0x282/0x9f0 [ 70.161809][ C1] driver_probe_device+0xfe/0x1d0 [ 70.168636][ C1] __device_attach_driver+0x1c2/0x220 [ 70.175818][ C1] bus_for_each_drv+0x15f/0x1e0 [ 70.182479][ C1] __device_attach+0x228/0x470 [ 70.189078][ C1] bus_probe_device+0x1e4/0x290 [ 70.195734][ C1] device_add+0xb17/0x1c40 [ 70.201955][ C1] platform_device_add+0x34f/0x6d0 [ 70.208866][ C1] platform_device_register_full+0x38c/0x4e0 [ 70.216671][ C1] alsa_card_dummy_init+0x1e0/0x309 [ 70.223678][ C1] do_one_initcall+0x103/0x6f0 [ 70.230271][ C1] kernel_init_freeable+0x652/0x6d6 [ 70.237284][ C1] kernel_init+0xd/0x1b8 [ 70.243531][ C1] ret_from_fork+0x1f/0x30 [ 70.249762][ C1] SOFTIRQ-ON-R at: [ 70.253822][ C1] lock_acquire+0x1f2/0xaa0 [ 70.260129][ C1] _raw_read_lock+0x5b/0x70 [ 70.266482][ C1] snd_ctl_notify.part.0+0x36/0x550 [ 70.273556][ C1] snd_ctl_notify+0x8f/0xb0 [ 70.279870][ C1] __snd_ctl_add_replace+0x638/0x800 [ 70.286964][ C1] snd_ctl_add_replace+0x76/0x130 [ 70.293793][ C1] snd_dummy_probe+0xc22/0x1180 [ 70.300447][ C1] platform_drv_probe+0x87/0x140 [ 70.307183][ C1] really_probe+0x282/0x9f0 [ 70.313486][ C1] driver_probe_device+0xfe/0x1d0 [ 70.320497][ C1] __device_attach_driver+0x1c2/0x220 [ 70.327900][ C1] bus_for_each_drv+0x15f/0x1e0 [ 70.334809][ C1] __device_attach+0x228/0x470 [ 70.341460][ C1] bus_probe_device+0x1e4/0x290 [ 70.348282][ C1] device_add+0xb17/0x1c40 [ 70.354539][ C1] platform_device_add+0x34f/0x6d0 [ 70.361492][ C1] platform_device_register_full+0x38c/0x4e0 [ 70.369279][ C1] alsa_card_dummy_init+0x1e0/0x309 [ 70.376314][ C1] do_one_initcall+0x103/0x6f0 [ 70.382884][ C1] kernel_init_freeable+0x652/0x6d6 [ 70.389885][ C1] kernel_init+0xd/0x1b8 [ 70.395931][ C1] ret_from_fork+0x1f/0x30 [ 70.402147][ C1] (null) at: [ 70.405684][ C1] ================================================================================ [ 70.414938][ C1] UBSAN: array-index-out-of-bounds in kernel/locking/lockdep.c:2240:40 [ 70.423155][ C1] index 9 is out of range for type 'lock_trace *[9]' [ 70.429811][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.9.0-rc6-next-20200922-syzkaller #0 [ 70.438894][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 70.448949][ C1] Call Trace: [ 70.452227][ C1] [ 70.455068][ C1] dump_stack+0x198/0x1fb [ 70.459389][ C1] ubsan_epilogue+0xb/0x5a [ 70.463789][ C1] __ubsan_handle_out_of_bounds.cold+0x62/0x6c [ 70.469925][ C1] ? vprintk_func+0x95/0x1e0 [ 70.474500][ C1] print_shortest_lock_dependencies.cold+0x11c/0x2e2 [ 70.481153][ C1] print_irq_inversion_bug.part.0+0x2c6/0x2ee [ 70.487201][ C1] mark_lock.cold+0x57/0x74 [ 70.491688][ C1] ? lock_chain_count+0x20/0x20 [ 70.496518][ C1] ? lock_is_held_type+0xbb/0xf0 [ 70.501437][ C1] ? find_held_lock+0x2d/0x110 [ 70.506194][ C1] ? debug_object_activate+0x287/0x3e0 [ 70.511635][ C1] ? lock_downgrade+0x830/0x830 [ 70.516554][ C1] __lock_acquire+0x118a/0x56d0 [ 70.521436][ C1] ? lock_downgrade+0x830/0x830 [ 70.526267][ C1] ? lockdep_hardirqs_on_prepare+0x530/0x530 [ 70.532255][ C1] ? mark_lock+0xf7/0x2420 [ 70.536682][ C1] lock_acquire+0x1f2/0xaa0 [ 70.541169][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 70.547075][ C1] ? lock_release+0x890/0x890 [ 70.551730][ C1] ? find_held_lock+0x2d/0x110 [ 70.556476][ C1] ? loopback_jiffies_timer_function+0x188/0x220 [ 70.562790][ C1] ? _raw_spin_lock_irqsave+0xa9/0xd0 [ 70.568155][ C1] _raw_spin_lock_irqsave+0x94/0xd0 [ 70.573603][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 70.579529][ C1] _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 70.585265][ C1] snd_pcm_period_elapsed+0x24/0x250 [ 70.590536][ C1] loopback_jiffies_timer_function+0x1a8/0x220 [ 70.596674][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 70.603185][ C1] call_timer_fn+0x1a5/0x6b0 [ 70.608190][ C1] ? add_timer_on+0x4a0/0x4a0 [ 70.612964][ C1] ? lock_downgrade+0x830/0x830 [ 70.617796][ C1] ? _raw_spin_unlock_irq+0x1f/0x80 [ 70.622975][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 70.629479][ C1] __run_timers.part.0+0x67c/0xa50 [ 70.634570][ C1] ? call_timer_fn+0x6b0/0x6b0 [ 70.639349][ C1] ? lapic_next_event+0x4d/0x80 [ 70.644183][ C1] ? kvm_sched_clock_read+0x14/0x40 [ 70.649359][ C1] ? sched_clock+0x2a/0x40 [ 70.653758][ C1] ? sched_clock_cpu+0x18/0x1f0 [ 70.658588][ C1] ? hrtimer_interrupt+0x6f4/0x940 [ 70.663680][ C1] run_timer_softirq+0xb3/0x1d0 [ 70.668540][ C1] __do_softirq+0x203/0xab6 [ 70.673027][ C1] asm_call_on_stack+0xf/0x20 [ 70.677684][ C1] [ 70.680635][ C1] do_softirq_own_stack+0x9d/0xd0 [ 70.685649][ C1] irq_exit_rcu+0x235/0x280 [ 70.690135][ C1] sysvec_apic_timer_interrupt+0x51/0xf0 [ 70.695874][ C1] asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 70.701837][ C1] RIP: 0010:native_safe_halt+0xe/0x10 [ 70.707222][ C1] Code: 89 ef e8 45 3b 76 f9 e9 86 fe ff ff 48 89 df e8 38 3b 76 f9 e9 7b ff ff ff cc cc cc e9 07 00 00 00 0f 00 2d 84 87 68 00 fb f4 90 e9 07 00 00 00 0f 00 2d 74 87 68 00 f4 c3 cc cc 55 53 e8 09 [ 70.726938][ C1] RSP: 0018:ffffc90000d3fd80 EFLAGS: 00000293 [ 70.732987][ C1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff175ebe1 [ 70.740939][ C1] RDX: ffff8880a961a340 RSI: ffffffff88406353 RDI: 0000000000000000 [ 70.748919][ C1] RBP: ffff8880a67aa064 R08: 0000000000000001 R09: 0000000000000001 [ 70.756873][ C1] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 70.764998][ C1] R13: ffff8880a67aa000 R14: ffff8880a67aa064 R15: ffff888218412004 [ 70.772960][ C1] ? acpi_idle_do_entry+0x1e3/0x330 [ 70.778141][ C1] acpi_idle_do_entry+0x1e8/0x330 [ 70.783160][ C1] acpi_idle_enter+0x35a/0x550 [ 70.787908][ C1] cpuidle_enter_state+0x1ab/0xd20 [ 70.793000][ C1] ? tick_nohz_idle_stop_tick+0x50b/0xbd0 [ 70.798701][ C1] cpuidle_enter+0x4a/0xa0 [ 70.803101][ C1] do_idle+0x48e/0x730 [ 70.807251][ C1] ? arch_cpu_idle_exit+0x70/0x70 [ 70.812434][ C1] ? _raw_spin_unlock_irqrestore+0x1/0x90 [ 70.818139][ C1] ? lockdep_hardirqs_on+0x53/0x100 [ 70.823325][ C1] cpu_startup_entry+0x14/0x20 [ 70.828074][ C1] secondary_startup_64_no_verify+0xa6/0xab [ 70.833962][ C1] ================================================================================ [ 70.843217][ C1] Kernel panic - not syncing: panic_on_warn set ... [ 70.849824][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.9.0-rc6-next-20200922-syzkaller #0 [ 70.858934][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 70.868969][ C1] Call Trace: [ 70.872235][ C1] [ 70.875073][ C1] dump_stack+0x198/0x1fb [ 70.879384][ C1] panic+0x382/0x7fb [ 70.883264][ C1] ? __warn_printk+0xf3/0xf3 [ 70.887838][ C1] ? secondary_startup_64_no_verify+0xa6/0xab [ 70.893914][ C1] ? ubsan_epilogue+0x3e/0x5a [ 70.898572][ C1] ? ubsan_epilogue+0x35/0x5a [ 70.903261][ C1] ubsan_epilogue+0x54/0x5a [ 70.907746][ C1] __ubsan_handle_out_of_bounds.cold+0x62/0x6c [ 70.913880][ C1] ? vprintk_func+0x95/0x1e0 [ 70.918488][ C1] print_shortest_lock_dependencies.cold+0x11c/0x2e2 [ 70.925144][ C1] print_irq_inversion_bug.part.0+0x2c6/0x2ee [ 70.931488][ C1] mark_lock.cold+0x57/0x74 [ 70.935986][ C1] ? lock_chain_count+0x20/0x20 [ 70.941006][ C1] ? lock_is_held_type+0xbb/0xf0 [ 70.946025][ C1] ? find_held_lock+0x2d/0x110 [ 70.950901][ C1] ? debug_object_activate+0x287/0x3e0 [ 70.956357][ C1] ? lock_downgrade+0x830/0x830 [ 70.961197][ C1] __lock_acquire+0x118a/0x56d0 [ 70.966070][ C1] ? lock_downgrade+0x830/0x830 [ 70.970903][ C1] ? lockdep_hardirqs_on_prepare+0x530/0x530 [ 70.976863][ C1] ? mark_lock+0xf7/0x2420 [ 70.981261][ C1] lock_acquire+0x1f2/0xaa0 [ 70.985777][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 70.991690][ C1] ? lock_release+0x890/0x890 [ 70.996502][ C1] ? find_held_lock+0x2d/0x110 [ 71.001304][ C1] ? loopback_jiffies_timer_function+0x188/0x220 [ 71.007630][ C1] ? _raw_spin_lock_irqsave+0xa9/0xd0 [ 71.012992][ C1] _raw_spin_lock_irqsave+0x94/0xd0 [ 71.018178][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 71.024052][ C1] _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 71.029867][ C1] snd_pcm_period_elapsed+0x24/0x250 [ 71.035481][ C1] loopback_jiffies_timer_function+0x1a8/0x220 [ 71.041720][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 71.048491][ C1] call_timer_fn+0x1a5/0x6b0 [ 71.053069][ C1] ? add_timer_on+0x4a0/0x4a0 [ 71.057730][ C1] ? lock_downgrade+0x830/0x830 [ 71.062603][ C1] ? _raw_spin_unlock_irq+0x1f/0x80 [ 71.067957][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 71.074441][ C1] __run_timers.part.0+0x67c/0xa50 [ 71.079536][ C1] ? call_timer_fn+0x6b0/0x6b0 [ 71.084280][ C1] ? lapic_next_event+0x4d/0x80 [ 71.089113][ C1] ? kvm_sched_clock_read+0x14/0x40 [ 71.094293][ C1] ? sched_clock+0x2a/0x40 [ 71.098692][ C1] ? sched_clock_cpu+0x18/0x1f0 [ 71.103523][ C1] ? hrtimer_interrupt+0x6f4/0x940 [ 71.108613][ C1] run_timer_softirq+0xb3/0x1d0 [ 71.113482][ C1] __do_softirq+0x203/0xab6 [ 71.117968][ C1] asm_call_on_stack+0xf/0x20 [ 71.122657][ C1] [ 71.125578][ C1] do_softirq_own_stack+0x9d/0xd0 [ 71.130585][ C1] irq_exit_rcu+0x235/0x280 [ 71.135127][ C1] sysvec_apic_timer_interrupt+0x51/0xf0 [ 71.140742][ C1] asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 71.146701][ C1] RIP: 0010:native_safe_halt+0xe/0x10 [ 71.152056][ C1] Code: 89 ef e8 45 3b 76 f9 e9 86 fe ff ff 48 89 df e8 38 3b 76 f9 e9 7b ff ff ff cc cc cc e9 07 00 00 00 0f 00 2d 84 87 68 00 fb f4 90 e9 07 00 00 00 0f 00 2d 74 87 68 00 f4 c3 cc cc 55 53 e8 09 [ 71.171765][ C1] RSP: 0018:ffffc90000d3fd80 EFLAGS: 00000293 [ 71.177848][ C1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff175ebe1 [ 71.185802][ C1] RDX: ffff8880a961a340 RSI: ffffffff88406353 RDI: 0000000000000000 [ 71.193759][ C1] RBP: ffff8880a67aa064 R08: 0000000000000001 R09: 0000000000000001 [ 71.201714][ C1] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 71.209667][ C1] R13: ffff8880a67aa000 R14: ffff8880a67aa064 R15: ffff888218412004 [ 71.217717][ C1] ? acpi_idle_do_entry+0x1e3/0x330 [ 71.222932][ C1] acpi_idle_do_entry+0x1e8/0x330 [ 71.227945][ C1] acpi_idle_enter+0x35a/0x550 [ 71.232891][ C1] cpuidle_enter_state+0x1ab/0xd20 [ 71.238001][ C1] ? tick_nohz_idle_stop_tick+0x50b/0xbd0 [ 71.243834][ C1] cpuidle_enter+0x4a/0xa0 [ 71.248248][ C1] do_idle+0x48e/0x730 [ 71.252475][ C1] ? arch_cpu_idle_exit+0x70/0x70 [ 71.257496][ C1] ? _raw_spin_unlock_irqrestore+0x1/0x90 [ 71.263205][ C1] ? lockdep_hardirqs_on+0x53/0x100 [ 71.268725][ C1] cpu_startup_entry+0x14/0x20 [ 71.273483][ C1] secondary_startup_64_no_verify+0xa6/0xab [ 71.280945][ C1] Kernel Offset: disabled [ 71.285387][ C1] Rebooting in 86400 seconds..