Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.89' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program syzkaller login: [ 64.578888][ C1] [ 64.581372][ C1] ======================================================== [ 64.588544][ C1] WARNING: possible irq lock inversion dependency detected [ 64.595717][ C1] 5.9.0-rc5-next-20200918-syzkaller #0 Not tainted [ 64.602196][ C1] -------------------------------------------------------- [ 64.609391][ C1] swapper/1/0 just changed the state of lock: [ 64.615549][ C1] ffff888214db4908 (&group->lock){..-.}-{2:2}, at: _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 64.625521][ C1] but this lock took another, SOFTIRQ-READ-unsafe lock in the past: [ 64.633493][ C1] (&card->ctl_files_rwlock){.+.+}-{2:2} [ 64.633508][ C1] [ 64.633508][ C1] [ 64.633508][ C1] and interrupts could create inverse lock ordering between them. [ 64.633508][ C1] [ 64.653412][ C1] [ 64.653412][ C1] other info that might help us debug this: [ 64.661457][ C1] Possible interrupt unsafe locking scenario: [ 64.661457][ C1] [ 64.669792][ C1] CPU0 CPU1 [ 64.675156][ C1] ---- ---- [ 64.680501][ C1] lock(&card->ctl_files_rwlock); [ 64.685608][ C1] local_irq_disable(); [ 64.692340][ C1] lock(&group->lock); [ 64.699000][ C1] lock(&card->ctl_files_rwlock); [ 64.706624][ C1] [ 64.710069][ C1] lock(&group->lock); [ 64.714519][ C1] [ 64.714519][ C1] *** DEADLOCK *** [ 64.714519][ C1] [ 64.722670][ C1] 1 lock held by swapper/1/0: [ 64.727443][ C1] #0: ffffc90000da8d80 ((&dpcm->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 [ 64.736842][ C1] [ 64.736842][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 64.746209][ C1] -> (&card->ctl_files_rwlock){.+.+}-{2:2} { [ 64.752268][ C1] HARDIRQ-ON-R at: [ 64.756330][ C1] lock_acquire+0x1f2/0xaa0 [ 64.762667][ C1] _raw_read_lock+0x5b/0x70 [ 64.768981][ C1] snd_ctl_notify.part.0+0x36/0x550 [ 64.775984][ C1] snd_ctl_notify+0x8f/0xb0 [ 64.782292][ C1] __snd_ctl_add_replace+0x638/0x800 [ 64.789398][ C1] snd_ctl_add_replace+0x76/0x130 [ 64.797282][ C1] snd_dummy_probe+0xc22/0x1180 [ 64.803969][ C1] platform_drv_probe+0x87/0x140 [ 64.810741][ C1] really_probe+0x282/0x9f0 [ 64.817085][ C1] driver_probe_device+0xfe/0x1d0 [ 64.823931][ C1] __device_attach_driver+0x1c2/0x220 [ 64.831142][ C1] bus_for_each_drv+0x15f/0x1e0 [ 64.837928][ C1] __device_attach+0x228/0x470 [ 64.844552][ C1] bus_probe_device+0x1e4/0x290 [ 64.851209][ C1] device_add+0xb17/0x1c40 [ 64.857437][ C1] platform_device_add+0x34f/0x6d0 [ 64.864465][ C1] platform_device_register_full+0x38c/0x4e0 [ 64.872567][ C1] alsa_card_dummy_init+0x1e0/0x309 [ 64.879608][ C1] do_one_initcall+0x103/0x6f0 [ 64.886178][ C1] kernel_init_freeable+0x652/0x6d6 [ 64.893205][ C1] kernel_init+0xd/0x1b8 [ 64.899254][ C1] ret_from_fork+0x1f/0x30 [ 64.905499][ C1] SOFTIRQ-ON-R at: [ 64.909579][ C1] lock_acquire+0x1f2/0xaa0 [ 64.915880][ C1] _raw_read_lock+0x5b/0x70 [ 64.922206][ C1] snd_ctl_notify.part.0+0x36/0x550 [ 64.929218][ C1] snd_ctl_notify+0x8f/0xb0 [ 64.935554][ C1] __snd_ctl_add_replace+0x638/0x800 [ 64.942703][ C1] snd_ctl_add_replace+0x76/0x130 [ 64.949562][ C1] snd_dummy_probe+0xc22/0x1180 [ 64.956226][ C1] platform_drv_probe+0x87/0x140 [ 64.962979][ C1] really_probe+0x282/0x9f0 [ 64.969304][ C1] driver_probe_device+0xfe/0x1d0 [ 64.976143][ C1] __device_attach_driver+0x1c2/0x220 [ 64.983322][ C1] bus_for_each_drv+0x15f/0x1e0 [ 64.989977][ C1] __device_attach+0x228/0x470 [ 64.996555][ C1] bus_probe_device+0x1e4/0x290 [ 65.003213][ C1] device_add+0xb17/0x1c40 [ 65.009450][ C1] platform_device_add+0x34f/0x6d0 [ 65.016365][ C1] platform_device_register_full+0x38c/0x4e0 [ 65.024165][ C1] alsa_card_dummy_init+0x1e0/0x309 [ 65.031165][ C1] do_one_initcall+0x103/0x6f0 [ 65.037837][ C1] kernel_init_freeable+0x652/0x6d6 [ 65.044838][ C1] kernel_init+0xd/0x1b8 [ 65.050902][ C1] ret_from_fork+0x1f/0x30 [ 65.057114][ C1] (null) at: [ 65.060641][ C1] ================================================================================ [ 65.069905][ C1] UBSAN: array-index-out-of-bounds in kernel/locking/lockdep.c:2240:40 [ 65.078136][ C1] index 9 is out of range for type 'lock_trace *[9]' [ 65.084790][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.9.0-rc5-next-20200918-syzkaller #0 [ 65.093972][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 65.104017][ C1] Call Trace: [ 65.107296][ C1] [ 65.110139][ C1] dump_stack+0x198/0x1fb [ 65.114459][ C1] ubsan_epilogue+0xb/0x5a [ 65.118963][ C1] __ubsan_handle_out_of_bounds.cold+0x62/0x6c [ 65.125142][ C1] ? vprintk_func+0x95/0x1e0 [ 65.129713][ C1] print_shortest_lock_dependencies.cold+0x11c/0x2e2 [ 65.136372][ C1] print_irq_inversion_bug.part.0+0x2c6/0x2ee [ 65.142523][ C1] mark_lock.cold+0x57/0x74 [ 65.147020][ C1] ? lock_chain_count+0x20/0x20 [ 65.151864][ C1] ? lock_is_held_type+0xbb/0xf0 [ 65.156780][ C1] ? find_held_lock+0x2d/0x110 [ 65.161523][ C1] ? debug_object_activate+0x287/0x3e0 [ 65.166960][ C1] ? lock_downgrade+0x830/0x830 [ 65.171801][ C1] __lock_acquire+0x118a/0x56d0 [ 65.176634][ C1] ? lock_downgrade+0x830/0x830 [ 65.181467][ C1] ? lockdep_hardirqs_on_prepare+0x530/0x530 [ 65.187438][ C1] ? mark_lock+0xf7/0x2420 [ 65.191834][ C1] lock_acquire+0x1f2/0xaa0 [ 65.196327][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.202220][ C1] ? lock_release+0x890/0x890 [ 65.206875][ C1] ? find_held_lock+0x2d/0x110 [ 65.211625][ C1] ? loopback_jiffies_timer_function+0x188/0x220 [ 65.217952][ C1] ? _raw_spin_lock_irqsave+0xa9/0xd0 [ 65.223315][ C1] _raw_spin_lock_irqsave+0x94/0xd0 [ 65.228496][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.234392][ C1] _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.240092][ C1] snd_pcm_period_elapsed+0x24/0x250 [ 65.245358][ C1] loopback_jiffies_timer_function+0x1a8/0x220 [ 65.251520][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 65.258002][ C1] call_timer_fn+0x1a5/0x6b0 [ 65.262570][ C1] ? add_timer_on+0x4a0/0x4a0 [ 65.267226][ C1] ? lock_downgrade+0x830/0x830 [ 65.272080][ C1] ? _raw_spin_unlock_irq+0x1f/0x80 [ 65.277972][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 65.284469][ C1] __run_timers.part.0+0x67c/0xa50 [ 65.289560][ C1] ? call_timer_fn+0x6b0/0x6b0 [ 65.294302][ C1] ? lapic_next_event+0x4d/0x80 [ 65.299567][ C1] ? kvm_sched_clock_read+0x14/0x40 [ 65.304757][ C1] ? sched_clock+0x2a/0x40 [ 65.309177][ C1] ? sched_clock_cpu+0x18/0x1f0 [ 65.314021][ C1] ? hrtimer_interrupt+0x6f4/0x940 [ 65.319113][ C1] run_timer_softirq+0xb3/0x1d0 [ 65.324008][ C1] __do_softirq+0x203/0xab6 [ 65.328496][ C1] asm_call_on_stack+0xf/0x20 [ 65.333357][ C1] [ 65.336292][ C1] do_softirq_own_stack+0x9d/0xd0 [ 65.341315][ C1] irq_exit_rcu+0x235/0x280 [ 65.345801][ C1] sysvec_apic_timer_interrupt+0x51/0xf0 [ 65.351437][ C1] asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 65.357413][ C1] RIP: 0010:native_safe_halt+0xe/0x10 [ 65.362764][ 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 [ 65.382350][ C1] RSP: 0018:ffffc90000d3fd80 EFLAGS: 00000293 [ 65.388405][ C1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff171e639 [ 65.396382][ C1] RDX: ffff8880a961a340 RSI: ffffffff883fd4d3 RDI: 0000000000000000 [ 65.404356][ C1] RBP: ffff8880a6274864 R08: 0000000000000001 R09: 0000000000000001 [ 65.412321][ C1] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 65.420288][ C1] R13: ffff8880a6274800 R14: ffff8880a6274864 R15: ffff8880a385d004 [ 65.428276][ C1] ? acpi_idle_do_entry+0x1e3/0x330 [ 65.433476][ C1] acpi_idle_do_entry+0x1e8/0x330 [ 65.438480][ C1] acpi_idle_enter+0x35a/0x550 [ 65.443225][ C1] cpuidle_enter_state+0x1ab/0xd20 [ 65.448333][ C1] cpuidle_enter+0x4a/0xa0 [ 65.452745][ C1] do_idle+0x48e/0x730 [ 65.456798][ C1] ? arch_cpu_idle_exit+0x70/0x70 [ 65.461805][ C1] cpu_startup_entry+0x14/0x20 [ 65.466667][ C1] secondary_startup_64_no_verify+0xa6/0xab [ 65.472546][ C1] ================================================================================ [ 65.481807][ C1] Kernel panic - not syncing: panic_on_warn set ... [ 65.488382][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.9.0-rc5-next-20200918-syzkaller #0 [ 65.497615][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 65.507703][ C1] Call Trace: [ 65.510971][ C1] [ 65.513823][ C1] dump_stack+0x198/0x1fb [ 65.518144][ C1] panic+0x382/0x7fb [ 65.522039][ C1] ? __warn_printk+0xf3/0xf3 [ 65.526611][ C1] ? secondary_startup_64_no_verify+0xa6/0xab [ 65.532657][ C1] ? ubsan_epilogue+0x3e/0x5a [ 65.537313][ C1] ? ubsan_epilogue+0x35/0x5a [ 65.541988][ C1] ubsan_epilogue+0x54/0x5a [ 65.546500][ C1] __ubsan_handle_out_of_bounds.cold+0x62/0x6c [ 65.552649][ C1] ? vprintk_func+0x95/0x1e0 [ 65.557219][ C1] print_shortest_lock_dependencies.cold+0x11c/0x2e2 [ 65.563878][ C1] print_irq_inversion_bug.part.0+0x2c6/0x2ee [ 65.569928][ C1] mark_lock.cold+0x57/0x74 [ 65.574421][ C1] ? lock_chain_count+0x20/0x20 [ 65.579267][ C1] ? lock_is_held_type+0xbb/0xf0 [ 65.584204][ C1] ? find_held_lock+0x2d/0x110 [ 65.588982][ C1] ? debug_object_activate+0x287/0x3e0 [ 65.594426][ C1] ? lock_downgrade+0x830/0x830 [ 65.599268][ C1] __lock_acquire+0x118a/0x56d0 [ 65.604106][ C1] ? lock_downgrade+0x830/0x830 [ 65.608959][ C1] ? lockdep_hardirqs_on_prepare+0x530/0x530 [ 65.614966][ C1] ? mark_lock+0xf7/0x2420 [ 65.619365][ C1] lock_acquire+0x1f2/0xaa0 [ 65.623872][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.629755][ C1] ? lock_release+0x890/0x890 [ 65.634439][ C1] ? find_held_lock+0x2d/0x110 [ 65.639206][ C1] ? loopback_jiffies_timer_function+0x188/0x220 [ 65.645530][ C1] ? _raw_spin_lock_irqsave+0xa9/0xd0 [ 65.650887][ C1] _raw_spin_lock_irqsave+0x94/0xd0 [ 65.656094][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.662008][ C1] _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.667710][ C1] snd_pcm_period_elapsed+0x24/0x250 [ 65.672984][ C1] loopback_jiffies_timer_function+0x1a8/0x220 [ 65.679195][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 65.685682][ C1] call_timer_fn+0x1a5/0x6b0 [ 65.690336][ C1] ? add_timer_on+0x4a0/0x4a0 [ 65.694996][ C1] ? lock_downgrade+0x830/0x830 [ 65.699870][ C1] ? _raw_spin_unlock_irq+0x1f/0x80 [ 65.705056][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 65.711546][ C1] __run_timers.part.0+0x67c/0xa50 [ 65.716648][ C1] ? call_timer_fn+0x6b0/0x6b0 [ 65.721396][ C1] ? lapic_next_event+0x4d/0x80 [ 65.726246][ C1] ? kvm_sched_clock_read+0x14/0x40 [ 65.731437][ C1] ? sched_clock+0x2a/0x40 [ 65.735836][ C1] ? sched_clock_cpu+0x18/0x1f0 [ 65.740693][ C1] ? hrtimer_interrupt+0x6f4/0x940 [ 65.745795][ C1] run_timer_softirq+0xb3/0x1d0 [ 65.750641][ C1] __do_softirq+0x203/0xab6 [ 65.755138][ C1] asm_call_on_stack+0xf/0x20 [ 65.759791][ C1] [ 65.762725][ C1] do_softirq_own_stack+0x9d/0xd0 [ 65.767740][ C1] irq_exit_rcu+0x235/0x280 [ 65.772248][ C1] sysvec_apic_timer_interrupt+0x51/0xf0 [ 65.777893][ C1] asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 65.783852][ C1] RIP: 0010:native_safe_halt+0xe/0x10 [ 65.789212][ 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 [ 65.808806][ C1] RSP: 0018:ffffc90000d3fd80 EFLAGS: 00000293 [ 65.815380][ C1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff171e639 [ 65.823348][ C1] RDX: ffff8880a961a340 RSI: ffffffff883fd4d3 RDI: 0000000000000000 [ 65.831374][ C1] RBP: ffff8880a6274864 R08: 0000000000000001 R09: 0000000000000001 [ 65.839449][ C1] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001 [ 65.847407][ C1] R13: ffff8880a6274800 R14: ffff8880a6274864 R15: ffff8880a385d004 [ 65.855388][ C1] ? acpi_idle_do_entry+0x1e3/0x330 [ 65.860588][ C1] acpi_idle_do_entry+0x1e8/0x330 [ 65.865595][ C1] acpi_idle_enter+0x35a/0x550 [ 65.870352][ C1] cpuidle_enter_state+0x1ab/0xd20 [ 65.875444][ C1] cpuidle_enter+0x4a/0xa0 [ 65.879845][ C1] do_idle+0x48e/0x730 [ 65.883911][ C1] ? arch_cpu_idle_exit+0x70/0x70 [ 65.888931][ C1] cpu_startup_entry+0x14/0x20 [ 65.893683][ C1] secondary_startup_64_no_verify+0xa6/0xab [ 65.901204][ C1] Kernel Offset: disabled [ 65.905541][ C1] Rebooting in 86400 seconds..