Warning: Permanently added '10.128.0.43' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program syzkaller login: [ 72.669106][ C0] [ 72.671444][ C0] ======================================================== [ 72.678636][ C0] WARNING: possible irq lock inversion dependency detected [ 72.685824][ C0] 5.9.0-rc4-next-20200911-syzkaller #0 Not tainted [ 72.692290][ C0] -------------------------------------------------------- [ 72.699468][ C0] swapper/0/0 just changed the state of lock: [ 72.705501][ C0] ffff888214d4c108 (&group->lock){..-.}-{2:2}, at: _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 72.715379][ C0] but this lock took another, SOFTIRQ-READ-unsafe lock in the past: [ 72.723339][ C0] (&card->ctl_files_rwlock){.+.+}-{2:2} [ 72.723351][ C0] [ 72.723351][ C0] [ 72.723351][ C0] and interrupts could create inverse lock ordering between them. [ 72.723351][ C0] [ 72.743237][ C0] [ 72.743237][ C0] other info that might help us debug this: [ 72.751308][ C0] Possible interrupt unsafe locking scenario: [ 72.751308][ C0] [ 72.759601][ C0] CPU0 CPU1 [ 72.764941][ C0] ---- ---- [ 72.770298][ C0] lock(&card->ctl_files_rwlock); [ 72.775386][ C0] local_irq_disable(); [ 72.782132][ C0] lock(&group->lock); [ 72.788777][ C0] lock(&card->ctl_files_rwlock); [ 72.796390][ C0] [ 72.799839][ C0] lock(&group->lock); [ 72.804141][ C0] [ 72.804141][ C0] *** DEADLOCK *** [ 72.804141][ C0] [ 72.812258][ C0] 1 lock held by swapper/0/0: [ 72.816940][ C0] #0: ffffc90000007d80 ((&dpcm->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 [ 72.826254][ C0] [ 72.826254][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 72.835621][ C0] -> (&card->ctl_files_rwlock){.+.+}-{2:2} { [ 72.841666][ C0] HARDIRQ-ON-R at: [ 72.845733][ C0] lock_acquire+0x1f2/0xaa0 [ 72.852045][ C0] _raw_read_lock+0x5b/0x70 [ 72.858345][ C0] snd_ctl_notify.part.0+0x36/0x550 [ 72.865335][ C0] snd_ctl_notify+0x8f/0xb0 [ 72.871646][ C0] __snd_ctl_add_replace+0x638/0x800 [ 72.878880][ C0] snd_ctl_add_replace+0x76/0x130 [ 72.885713][ C0] snd_dummy_probe+0xbbf/0x1050 [ 72.892374][ C0] platform_drv_probe+0x87/0x140 [ 72.899116][ C0] really_probe+0x282/0x9f0 [ 72.905417][ C0] driver_probe_device+0xfe/0x1d0 [ 72.912254][ C0] __device_attach_driver+0x1c2/0x220 [ 72.919529][ C0] bus_for_each_drv+0x15f/0x1e0 [ 72.926191][ C0] __device_attach+0x228/0x470 [ 72.932750][ C0] bus_probe_device+0x1e4/0x290 [ 72.939396][ C0] device_add+0xb17/0x1c40 [ 72.945627][ C0] platform_device_add+0x34f/0x6d0 [ 72.952533][ C0] platform_device_register_full+0x38c/0x4e0 [ 72.960310][ C0] alsa_card_dummy_init+0x1cc/0x2e0 [ 72.967306][ C0] do_one_initcall+0x103/0x6f0 [ 72.973869][ C0] kernel_init_freeable+0x5e9/0x66d [ 72.980863][ C0] kernel_init+0xd/0x1c0 [ 72.986902][ C0] ret_from_fork+0x1f/0x30 [ 72.993122][ C0] SOFTIRQ-ON-R at: [ 72.997169][ C0] lock_acquire+0x1f2/0xaa0 [ 73.003482][ C0] _raw_read_lock+0x5b/0x70 [ 73.009782][ C0] snd_ctl_notify.part.0+0x36/0x550 [ 73.016786][ C0] snd_ctl_notify+0x8f/0xb0 [ 73.023084][ C0] __snd_ctl_add_replace+0x638/0x800 [ 73.030176][ C0] snd_ctl_add_replace+0x76/0x130 [ 73.037067][ C0] snd_dummy_probe+0xbbf/0x1050 [ 73.043728][ C0] platform_drv_probe+0x87/0x140 [ 73.050473][ C0] really_probe+0x282/0x9f0 [ 73.056798][ C0] driver_probe_device+0xfe/0x1d0 [ 73.063628][ C0] __device_attach_driver+0x1c2/0x220 [ 73.070815][ C0] bus_for_each_drv+0x15f/0x1e0 [ 73.077460][ C0] __device_attach+0x228/0x470 [ 73.084030][ C0] bus_probe_device+0x1e4/0x290 [ 73.090675][ C0] device_add+0xb17/0x1c40 [ 73.096886][ C0] platform_device_add+0x34f/0x6d0 [ 73.103800][ C0] platform_device_register_full+0x38c/0x4e0 [ 73.111592][ C0] alsa_card_dummy_init+0x1cc/0x2e0 [ 73.118633][ C0] do_one_initcall+0x103/0x6f0 [ 73.125196][ C0] kernel_init_freeable+0x5e9/0x66d [ 73.132191][ C0] kernel_init+0xd/0x1c0 [ 73.138255][ C0] ret_from_fork+0x1f/0x30 [ 73.144461][ C0] (null) at: [ 73.148004][ C0] general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN [ 73.159695][ C0] KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] [ 73.168077][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.9.0-rc4-next-20200911-syzkaller #0 [ 73.177156][ C0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 73.187191][ C0] RIP: 0010:print_shortest_lock_dependencies.cold+0x110/0x2af [ 73.194618][ 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 [ 73.214197][ C0] RSP: 0018:ffffc90000007898 EFLAGS: 00010003 [ 73.220249][ C0] RAX: 0000000000000001 RBX: ffffffff8cbdcfd0 RCX: 0000000000000000 [ 73.228203][ C0] RDX: 0000000000000002 RSI: ffffffff815c0ec7 RDI: 0000000000000015 [ 73.236147][ C0] RBP: ffffc900000079c8 R08: 0000000000000004 R09: ffff8880ae620f8b [ 73.244099][ C0] R10: 0000000000000000 R11: 6c756e2820202020 R12: dffffc0000000000 [ 73.252092][ C0] R13: ffffffff8c9e7568 R14: 0000000000000009 R15: 0000000000000001 [ 73.260053][ C0] FS: 0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 [ 73.268966][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 73.275535][ C0] CR2: 00000000004cca70 CR3: 00000000a7347000 CR4: 00000000001506f0 [ 73.283495][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 73.291566][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 73.299520][ C0] Call Trace: [ 73.302777][ C0] [ 73.305610][ C0] print_irq_inversion_bug.part.0+0x2c6/0x2ee [ 73.311650][ C0] mark_lock.cold+0x38/0x10d [ 73.316229][ C0] ? lock_chain_count+0x20/0x20 [ 73.321053][ C0] ? lock_is_held_type+0xbb/0xf0 [ 73.325976][ C0] ? find_held_lock+0x2d/0x110 [ 73.330712][ C0] ? debug_object_activate+0x287/0x3e0 [ 73.336145][ C0] ? lock_downgrade+0x830/0x830 [ 73.340981][ C0] __lock_acquire+0x117d/0x55d0 [ 73.345819][ C0] ? lock_downgrade+0x830/0x830 [ 73.350648][ C0] ? lockdep_hardirqs_on_prepare+0x530/0x530 [ 73.356600][ C0] ? mark_lock+0xf7/0x2300 [ 73.361054][ C0] lock_acquire+0x1f2/0xaa0 [ 73.365531][ C0] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 73.371416][ C0] ? lock_release+0x890/0x890 [ 73.376077][ C0] ? find_held_lock+0x2d/0x110 [ 73.380817][ C0] ? loopback_jiffies_timer_function+0x188/0x220 [ 73.387130][ C0] ? _raw_spin_lock_irqsave+0xa9/0xd0 [ 73.392489][ C0] _raw_spin_lock_irqsave+0x94/0xd0 [ 73.397659][ C0] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 73.403524][ C0] _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 73.409217][ C0] snd_pcm_period_elapsed+0x24/0x250 [ 73.414477][ C0] loopback_jiffies_timer_function+0x1a8/0x220 [ 73.420605][ C0] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 73.427075][ C0] call_timer_fn+0x1a5/0x6b0 [ 73.431639][ C0] ? add_timer_on+0x450/0x450 [ 73.436289][ C0] ? lock_downgrade+0x830/0x830 [ 73.441139][ C0] ? _raw_spin_unlock_irq+0x1f/0x80 [ 73.446310][ C0] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 73.452790][ C0] __run_timers.part.0+0x67c/0xa50 [ 73.457876][ C0] ? call_timer_fn+0x6b0/0x6b0 [ 73.462613][ C0] ? lapic_next_event+0x4d/0x80 [ 73.467438][ C0] ? clockevents_program_event+0x12b/0x350 [ 73.473217][ C0] ? kvm_sched_clock_read+0x14/0x40 [ 73.478396][ C0] ? sched_clock+0x2a/0x40 [ 73.482811][ C0] ? sched_clock_cpu+0x18/0x1b0 [ 73.487641][ C0] ? hrtimer_interrupt+0x6ea/0x930 [ 73.492735][ C0] run_timer_softirq+0xae/0x1a0 [ 73.497571][ C0] __do_softirq+0x202/0xa42 [ 73.502048][ C0] asm_call_on_stack+0xf/0x20 [ 73.506693][ C0] [ 73.509607][ C0] do_softirq_own_stack+0x9d/0xd0 [ 73.514604][ C0] irq_exit_rcu+0x235/0x280 [ 73.519121][ C0] sysvec_apic_timer_interrupt+0x51/0xf0 [ 73.524727][ C0] asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 73.530681][ C0] RIP: 0010:native_safe_halt+0xe/0x10 [ 73.536038][ 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 [ 73.555615][ C0] RSP: 0018:ffffffff89c07cd8 EFLAGS: 00000293 [ 73.561653][ C0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff15cacb9 [ 73.569599][ C0] RDX: ffffffff89c9b040 RSI: ffffffff88034020 RDI: 0000000000000000 [ 73.577543][ C0] RBP: ffff8880a6557064 R08: 0000000000000001 R09: 0000000000000001 [ 73.585491][ C0] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8880a6557064 [ 73.593447][ C0] R13: 1ffffffff1380fa5 R14: ffff8880a6557065 R15: 0000000000000001 [ 73.601415][ C0] ? acpi_safe_halt+0x90/0x180 [ 73.606156][ C0] acpi_safe_halt+0x95/0x180 [ 73.610823][ C0] acpi_idle_do_entry+0x15c/0x1b0 [ 73.615829][ C0] acpi_idle_enter+0x403/0xac0 [ 73.620606][ C0] ? acpi_idle_enter_bm+0x2d0/0x2d0 [ 73.625795][ C0] cpuidle_enter_state+0x150/0xa70 [ 73.630881][ C0] cpuidle_enter+0x4a/0xa0 [ 73.635271][ C0] do_idle+0x48e/0x730 [ 73.639321][ C0] ? arch_cpu_idle_exit+0x70/0x70 [ 73.644320][ C0] ? trace_init_perf_perm_irq_work_exit+0xe/0xe [ 73.650546][ C0] cpu_startup_entry+0x14/0x20 [ 73.655299][ C0] start_kernel+0x490/0x4b1 [ 73.659809][ C0] secondary_startup_64_no_verify+0xa6/0xab [ 73.665690][ C0] Modules linked in: [ 73.669612][ C0] ---[ end trace e689207a01566665 ]--- [ 73.675046][ C0] RIP: 0010:print_shortest_lock_dependencies.cold+0x110/0x2af [ 73.682488][ 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 [ 73.702069][ C0] RSP: 0018:ffffc90000007898 EFLAGS: 00010003 [ 73.708123][ C0] RAX: 0000000000000001 RBX: ffffffff8cbdcfd0 RCX: 0000000000000000 [ 73.716123][ C0] RDX: 0000000000000002 RSI: ffffffff815c0ec7 RDI: 0000000000000015 [ 73.724066][ C0] RBP: ffffc900000079c8 R08: 0000000000000004 R09: ffff8880ae620f8b [ 73.732034][ C0] R10: 0000000000000000 R11: 6c756e2820202020 R12: dffffc0000000000 [ 73.740026][ C0] R13: ffffffff8c9e7568 R14: 0000000000000009 R15: 0000000000000001 [ 73.747992][ C0] FS: 0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 [ 73.756893][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 73.763449][ C0] CR2: 00000000004cca70 CR3: 00000000a7347000 CR4: 00000000001506f0 [ 73.771400][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 73.779344][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 73.787317][ C0] Kernel panic - not syncing: Fatal exception in interrupt [ 73.795416][ C0] Kernel Offset: disabled [ 73.799747][ C0] Rebooting in 86400 seconds..