[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.201' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 69.262040][ C0] [ 69.264520][ C0] ======================================================== [ 69.271698][ C0] WARNING: possible irq lock inversion dependency detected [ 69.278885][ C0] 5.9.0-rc4-next-20200911-syzkaller #0 Not tainted [ 69.285378][ C0] -------------------------------------------------------- [ 69.292548][ C0] swapper/0/0 just changed the state of lock: [ 69.298600][ C0] ffff88809a25e908 (&group->lock){..-.}-{2:2}, at: _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 69.308507][ C0] but this lock took another, SOFTIRQ-READ-unsafe lock in the past: [ 69.316453][ C0] (&card->ctl_files_rwlock){.+.+}-{2:2} [ 69.316465][ C0] [ 69.316465][ C0] [ 69.316465][ C0] and interrupts could create inverse lock ordering between them. [ 69.316465][ C0] [ 69.336362][ C0] [ 69.336362][ C0] other info that might help us debug this: [ 69.344397][ C0] Possible interrupt unsafe locking scenario: [ 69.344397][ C0] [ 69.352689][ C0] CPU0 CPU1 [ 69.358029][ C0] ---- ---- [ 69.363367][ C0] lock(&card->ctl_files_rwlock); [ 69.368453][ C0] local_irq_disable(); [ 69.375203][ C0] lock(&group->lock); [ 69.381866][ C0] lock(&card->ctl_files_rwlock); [ 69.389486][ C0] [ 69.392915][ C0] lock(&group->lock); [ 69.397217][ C0] [ 69.397217][ C0] *** DEADLOCK *** [ 69.397217][ C0] [ 69.405352][ C0] 1 lock held by swapper/0/0: [ 69.410013][ C0] #0: ffffc90000007d80 ((&dpcm->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 [ 69.419289][ C0] [ 69.419289][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 69.428654][ C0] -> (&card->ctl_files_rwlock){.+.+}-{2:2} { [ 69.434715][ C0] HARDIRQ-ON-R at: [ 69.438768][ C0] lock_acquire+0x1f2/0xaa0 [ 69.445084][ C0] _raw_read_lock+0x5b/0x70 [ 69.451405][ C0] snd_ctl_notify.part.0+0x36/0x550 [ 69.458400][ C0] snd_ctl_notify+0x8f/0xb0 [ 69.464698][ C0] __snd_ctl_add_replace+0x638/0x800 [ 69.471792][ C0] snd_ctl_add_replace+0x76/0x130 [ 69.478616][ C0] snd_dummy_probe+0xbbf/0x1050 [ 69.485266][ C0] platform_drv_probe+0x87/0x140 [ 69.492000][ C0] really_probe+0x282/0x9f0 [ 69.498317][ C0] driver_probe_device+0xfe/0x1d0 [ 69.505155][ C0] __device_attach_driver+0x1c2/0x220 [ 69.512323][ C0] bus_for_each_drv+0x15f/0x1e0 [ 69.518972][ C0] __device_attach+0x228/0x470 [ 69.525535][ C0] bus_probe_device+0x1e4/0x290 [ 69.532181][ C0] device_add+0xb17/0x1c40 [ 69.538418][ C0] platform_device_add+0x34f/0x6d0 [ 69.545344][ C0] platform_device_register_full+0x38c/0x4e0 [ 69.553127][ C0] alsa_card_dummy_init+0x1cc/0x2e0 [ 69.560142][ C0] do_one_initcall+0x103/0x6f0 [ 69.566720][ C0] kernel_init_freeable+0x5e9/0x66d [ 69.573716][ C0] kernel_init+0xd/0x1c0 [ 69.579760][ C0] ret_from_fork+0x1f/0x30 [ 69.585969][ C0] SOFTIRQ-ON-R at: [ 69.590016][ C0] lock_acquire+0x1f2/0xaa0 [ 69.596318][ C0] _raw_read_lock+0x5b/0x70 [ 69.602620][ C0] snd_ctl_notify.part.0+0x36/0x550 [ 69.609629][ C0] snd_ctl_notify+0x8f/0xb0 [ 69.615929][ C0] __snd_ctl_add_replace+0x638/0x800 [ 69.623025][ C0] snd_ctl_add_replace+0x76/0x130 [ 69.629865][ C0] snd_dummy_probe+0xbbf/0x1050 [ 69.636515][ C0] platform_drv_probe+0x87/0x140 [ 69.643264][ C0] really_probe+0x282/0x9f0 [ 69.649569][ C0] driver_probe_device+0xfe/0x1d0 [ 69.656393][ C0] __device_attach_driver+0x1c2/0x220 [ 69.663561][ C0] bus_for_each_drv+0x15f/0x1e0 [ 69.670226][ C0] __device_attach+0x228/0x470 [ 69.676792][ C0] bus_probe_device+0x1e4/0x290 [ 69.686915][ C0] device_add+0xb17/0x1c40 [ 69.693155][ C0] platform_device_add+0x34f/0x6d0 [ 69.700078][ C0] platform_device_register_full+0x38c/0x4e0 [ 69.707860][ C0] alsa_card_dummy_init+0x1cc/0x2e0 [ 69.714873][ C0] do_one_initcall+0x103/0x6f0 [ 69.721454][ C0] kernel_init_freeable+0x5e9/0x66d [ 69.728462][ C0] kernel_init+0xd/0x1c0 [ 69.734537][ C0] ret_from_fork+0x1f/0x30 [ 69.740761][ C0] (null) at: [ 69.744332][ C0] general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN [ 69.756019][ C0] KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] [ 69.764408][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.9.0-rc4-next-20200911-syzkaller #0 [ 69.773485][ C0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 69.783543][ C0] RIP: 0010:print_shortest_lock_dependencies.cold+0x110/0x2af [ 69.790977][ 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 [ 69.810560][ C0] RSP: 0018:ffffc90000007898 EFLAGS: 00010003 [ 69.816607][ C0] RAX: 0000000000000001 RBX: ffffffff8cbdd970 RCX: 0000000000000000 [ 69.824555][ C0] RDX: 0000000000000002 RSI: ffffffff815c0ec7 RDI: 0000000000000015 [ 69.832502][ C0] RBP: ffffc900000079c8 R08: 0000000000000004 R09: ffff8880ae620f8b [ 69.840456][ C0] R10: 0000000000000000 R11: 6c756e2820202020 R12: dffffc0000000000 [ 69.848403][ C0] R13: ffffffff8c9e73f8 R14: 0000000000000009 R15: 0000000000000001 [ 69.856369][ C0] FS: 0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 [ 69.865401][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 69.871963][ C0] CR2: 0000000020000000 CR3: 0000000009c8e000 CR4: 00000000001506f0 [ 69.879914][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 69.887863][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 69.895807][ C0] Call Trace: [ 69.899089][ C0] [ 69.901936][ C0] print_irq_inversion_bug.part.0+0x2c6/0x2ee [ 69.907978][ C0] mark_lock.cold+0x38/0x10d [ 69.912549][ C0] ? lock_chain_count+0x20/0x20 [ 69.917403][ C0] ? lock_is_held_type+0xbb/0xf0 [ 69.922332][ C0] ? find_held_lock+0x2d/0x110 [ 69.927770][ C0] ? debug_object_activate+0x287/0x3e0 [ 69.933833][ C0] ? lock_downgrade+0x830/0x830 [ 69.938661][ C0] __lock_acquire+0x117d/0x55d0 [ 69.943509][ C0] ? lock_downgrade+0x830/0x830 [ 69.948355][ C0] ? lockdep_hardirqs_on_prepare+0x530/0x530 [ 69.954318][ C0] ? mark_lock+0xf7/0x2300 [ 69.958710][ C0] lock_acquire+0x1f2/0xaa0 [ 69.963218][ C0] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 69.969088][ C0] ? lock_release+0x890/0x890 [ 69.973748][ C0] ? find_held_lock+0x2d/0x110 [ 69.978493][ C0] ? loopback_jiffies_timer_function+0x188/0x220 [ 69.984801][ C0] ? _raw_spin_lock_irqsave+0xa9/0xd0 [ 69.990165][ C0] _raw_spin_lock_irqsave+0x94/0xd0 [ 69.995349][ C0] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 70.001235][ C0] _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 70.006943][ C0] snd_pcm_period_elapsed+0x24/0x250 [ 70.012222][ C0] loopback_jiffies_timer_function+0x1a8/0x220 [ 70.018383][ C0] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 70.024859][ C0] call_timer_fn+0x1a5/0x6b0 [ 70.029422][ C0] ? add_timer_on+0x450/0x450 [ 70.034073][ C0] ? lock_downgrade+0x830/0x830 [ 70.038900][ C0] ? _raw_spin_unlock_irq+0x1f/0x80 [ 70.044074][ C0] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 70.050560][ C0] __run_timers.part.0+0x67c/0xa50 [ 70.055647][ C0] ? call_timer_fn+0x6b0/0x6b0 [ 70.060403][ C0] ? lapic_next_event+0x4d/0x80 [ 70.065231][ C0] ? clockevents_program_event+0x12b/0x350 [ 70.071021][ C0] ? kvm_sched_clock_read+0x14/0x40 [ 70.076210][ C0] ? sched_clock+0x2a/0x40 [ 70.080602][ C0] ? sched_clock_cpu+0x18/0x1b0 [ 70.085427][ C0] ? hrtimer_interrupt+0x6ea/0x930 [ 70.090512][ C0] run_timer_softirq+0xae/0x1a0 [ 70.095339][ C0] __do_softirq+0x202/0xa42 [ 70.099840][ C0] asm_call_on_stack+0xf/0x20 [ 70.104488][ C0] [ 70.107408][ C0] do_softirq_own_stack+0x9d/0xd0 [ 70.112407][ C0] irq_exit_rcu+0x235/0x280 [ 70.116889][ C0] sysvec_apic_timer_interrupt+0x51/0xf0 [ 70.122518][ C0] asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 70.128488][ C0] RIP: 0010:native_safe_halt+0xe/0x10 [ 70.133835][ 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 [ 70.153411][ C0] RSP: 0018:ffffffff89c07cd8 EFLAGS: 00000293 [ 70.159451][ C0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff15cacb9 [ 70.167397][ C0] RDX: ffffffff89c9b040 RSI: ffffffff88034020 RDI: 0000000000000000 [ 70.175367][ C0] RBP: ffff8880a67a1064 R08: 0000000000000001 R09: 0000000000000001 [ 70.183316][ C0] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8880a67a1064 [ 70.191265][ C0] R13: 1ffffffff1380fa5 R14: ffff8880a67a1065 R15: 0000000000000001 [ 70.199225][ C0] ? acpi_safe_halt+0x90/0x180 [ 70.203968][ C0] acpi_safe_halt+0x95/0x180 [ 70.208532][ C0] acpi_idle_do_entry+0x15c/0x1b0 [ 70.213536][ C0] acpi_idle_enter+0x403/0xac0 [ 70.218277][ C0] ? acpi_idle_enter_bm+0x2d0/0x2d0 [ 70.223458][ C0] cpuidle_enter_state+0x150/0xa70 [ 70.228568][ C0] ? tick_nohz_idle_stop_tick+0x5af/0xbc0 [ 70.234263][ C0] cpuidle_enter+0x4a/0xa0 [ 70.238656][ C0] do_idle+0x48e/0x730 [ 70.242700][ C0] ? arch_cpu_idle_exit+0x70/0x70 [ 70.247700][ C0] ? trace_init_perf_perm_irq_work_exit+0xe/0xe [ 70.253914][ C0] ? trace_init_perf_perm_irq_work_exit+0xe/0xe [ 70.260130][ C0] cpu_startup_entry+0x14/0x20 [ 70.264872][ C0] start_kernel+0x490/0x4b1 [ 70.269360][ C0] secondary_startup_64_no_verify+0xa6/0xab [ 70.275225][ C0] Modules linked in: [ 70.279104][ C0] ---[ end trace bb51ac5346537650 ]--- [ 70.284545][ C0] RIP: 0010:print_shortest_lock_dependencies.cold+0x110/0x2af [ 70.291976][ 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 [ 70.311556][ C0] RSP: 0018:ffffc90000007898 EFLAGS: 00010003 [ 70.317602][ C0] RAX: 0000000000000001 RBX: ffffffff8cbdd970 RCX: 0000000000000000 [ 70.325569][ C0] RDX: 0000000000000002 RSI: ffffffff815c0ec7 RDI: 0000000000000015 [ 70.333519][ C0] RBP: ffffc900000079c8 R08: 0000000000000004 R09: ffff8880ae620f8b [ 70.341467][ C0] R10: 0000000000000000 R11: 6c756e2820202020 R12: dffffc0000000000 [ 70.349414][ C0] R13: ffffffff8c9e73f8 R14: 0000000000000009 R15: 0000000000000001 [ 70.357387][ C0] FS: 0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 [ 70.366290][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 70.372863][ C0] CR2: 0000000020000000 CR3: 0000000009c8e000 CR4: 00000000001506f0 [ 70.380811][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 70.388813][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 70.396761][ C0] Kernel panic - not syncing: Fatal exception in interrupt [ 70.405083][ C0] Kernel Offset: disabled [ 70.409404][ C0] Rebooting in 86400 seconds..