Warning: Permanently added '10.128.0.74' (ECDSA) to the list of known hosts. executing program [ 64.969641][ C1] [ 64.972021][ C1] ======================================================== [ 64.979207][ C1] WARNING: possible irq lock inversion dependency detected [ 64.986398][ C1] 5.9.0-rc4-next-20200911-syzkaller #0 Not tainted [ 64.992874][ C1] -------------------------------------------------------- [ 65.000055][ C1] swapper/1/0 just changed the state of lock: [ 65.006087][ C1] ffff888099dd9108 (&group->lock){..-.}-{2:2}, at: _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.015965][ C1] but this lock took another, SOFTIRQ-READ-unsafe lock in the past: [ 65.023906][ C1] (&card->ctl_files_rwlock){.+.+}-{2:2} [ 65.023918][ C1] [ 65.023918][ C1] [ 65.023918][ C1] and interrupts could create inverse lock ordering between them. [ 65.023918][ C1] [ 65.043801][ C1] [ 65.043801][ C1] other info that might help us debug this: [ 65.051830][ C1] Possible interrupt unsafe locking scenario: [ 65.051830][ C1] [ 65.060120][ C1] CPU0 CPU1 [ 65.065457][ C1] ---- ---- [ 65.071486][ C1] lock(&card->ctl_files_rwlock); [ 65.076578][ C1] local_irq_disable(); [ 65.083303][ C1] lock(&group->lock); [ 65.089960][ C1] lock(&card->ctl_files_rwlock); [ 65.097556][ C1] [ 65.100993][ C1] lock(&group->lock); [ 65.105302][ C1] [ 65.105302][ C1] *** DEADLOCK *** [ 65.105302][ C1] [ 65.113420][ C1] 1 lock held by swapper/1/0: [ 65.118071][ C1] #0: ffffc90000da8d80 ((&dpcm->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 [ 65.127338][ C1] [ 65.127338][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 65.136688][ C1] -> (&card->ctl_files_rwlock){.+.+}-{2:2} { [ 65.142742][ C1] HARDIRQ-ON-R at: [ 65.146809][ C1] lock_acquire+0x1f2/0xaa0 [ 65.153119][ C1] _raw_read_lock+0x5b/0x70 [ 65.159418][ C1] snd_ctl_notify.part.0+0x36/0x550 [ 65.166410][ C1] snd_ctl_notify+0x8f/0xb0 [ 65.172707][ C1] __snd_ctl_add_replace+0x638/0x800 [ 65.179802][ C1] snd_ctl_add_replace+0x76/0x130 [ 65.186630][ C1] snd_dummy_probe+0xbbf/0x1050 [ 65.193278][ C1] platform_drv_probe+0x87/0x140 [ 65.200019][ C1] really_probe+0x282/0x9f0 [ 65.206320][ C1] driver_probe_device+0xfe/0x1d0 [ 65.213140][ C1] __device_attach_driver+0x1c2/0x220 [ 65.220305][ C1] bus_for_each_drv+0x15f/0x1e0 [ 65.227905][ C1] __device_attach+0x228/0x470 [ 65.234465][ C1] bus_probe_device+0x1e4/0x290 [ 65.241123][ C1] device_add+0xb17/0x1c40 [ 65.247347][ C1] platform_device_add+0x34f/0x6d0 [ 65.254262][ C1] platform_device_register_full+0x38c/0x4e0 [ 65.262051][ C1] alsa_card_dummy_init+0x1cc/0x2e0 [ 65.269047][ C1] do_one_initcall+0x103/0x6f0 [ 65.275608][ C1] kernel_init_freeable+0x5e9/0x66d [ 65.282601][ C1] kernel_init+0xd/0x1c0 [ 65.288650][ C1] ret_from_fork+0x1f/0x30 [ 65.294860][ C1] SOFTIRQ-ON-R at: [ 65.298907][ C1] lock_acquire+0x1f2/0xaa0 [ 65.305210][ C1] _raw_read_lock+0x5b/0x70 [ 65.311536][ C1] snd_ctl_notify.part.0+0x36/0x550 [ 65.318527][ C1] snd_ctl_notify+0x8f/0xb0 [ 65.324825][ C1] __snd_ctl_add_replace+0x638/0x800 [ 65.331947][ C1] snd_ctl_add_replace+0x76/0x130 [ 65.338782][ C1] snd_dummy_probe+0xbbf/0x1050 [ 65.345441][ C1] platform_drv_probe+0x87/0x140 [ 65.352531][ C1] really_probe+0x282/0x9f0 [ 65.358837][ C1] driver_probe_device+0xfe/0x1d0 [ 65.365692][ C1] __device_attach_driver+0x1c2/0x220 [ 65.372860][ C1] bus_for_each_drv+0x15f/0x1e0 [ 65.379505][ C1] __device_attach+0x228/0x470 [ 65.386064][ C1] bus_probe_device+0x1e4/0x290 [ 65.392723][ C1] device_add+0xb17/0x1c40 [ 65.398939][ C1] platform_device_add+0x34f/0x6d0 [ 65.405848][ C1] platform_device_register_full+0x38c/0x4e0 [ 65.413644][ C1] alsa_card_dummy_init+0x1cc/0x2e0 [ 65.420641][ C1] do_one_initcall+0x103/0x6f0 [ 65.427213][ C1] kernel_init_freeable+0x5e9/0x66d [ 65.434219][ C1] kernel_init+0xd/0x1c0 [ 65.440271][ C1] ret_from_fork+0x1f/0x30 [ 65.446489][ C1] (null) at: [ 65.450036][ C1] general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN [ 65.461717][ C1] KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] [ 65.470103][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.9.0-rc4-next-20200911-syzkaller #0 [ 65.480044][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 65.490090][ C1] RIP: 0010:print_shortest_lock_dependencies.cold+0x110/0x2af [ 65.497529][ C1] 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 [ 65.517106][ C1] RSP: 0018:ffffc90000da8898 EFLAGS: 00010003 [ 65.523155][ C1] RAX: 0000000000000001 RBX: ffffffff8cbdea10 RCX: 0000000000000000 [ 65.531099][ C1] RDX: 0000000000000002 RSI: ffffffff815c0ec7 RDI: 0000000000000015 [ 65.539053][ C1] RBP: ffffc90000da89c8 R08: 0000000000000004 R09: ffff8880ae720f8b [ 65.547016][ C1] R10: 0000000000000000 R11: 6c756e2820202020 R12: dffffc0000000000 [ 65.554961][ C1] R13: ffffffff8c9e73f8 R14: 0000000000000009 R15: 0000000000000001 [ 65.562921][ C1] FS: 0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 [ 65.571834][ C1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 65.578996][ C1] CR2: 000000000043e740 CR3: 0000000092452000 CR4: 00000000001506e0 [ 65.591386][ C1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 65.599329][ C1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 65.607269][ C1] Call Trace: [ 65.610538][ C1] [ 65.613390][ C1] print_irq_inversion_bug.part.0+0x2c6/0x2ee [ 65.619698][ C1] mark_lock.cold+0x38/0x10d [ 65.624277][ C1] ? lock_chain_count+0x20/0x20 [ 65.629119][ C1] ? lock_is_held_type+0xbb/0xf0 [ 65.634058][ C1] ? find_held_lock+0x2d/0x110 [ 65.638796][ C1] ? debug_object_activate+0x287/0x3e0 [ 65.644237][ C1] ? lock_downgrade+0x830/0x830 [ 65.649081][ C1] __lock_acquire+0x117d/0x55d0 [ 65.653925][ C1] ? lock_downgrade+0x830/0x830 [ 65.658747][ C1] ? lockdep_hardirqs_on_prepare+0x530/0x530 [ 65.664711][ C1] ? mark_lock+0xf7/0x2300 [ 65.669133][ C1] lock_acquire+0x1f2/0xaa0 [ 65.673708][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.679587][ C1] ? lock_release+0x890/0x890 [ 65.684248][ C1] ? find_held_lock+0x2d/0x110 [ 65.689038][ C1] ? loopback_jiffies_timer_function+0x188/0x220 [ 65.695376][ C1] ? _raw_spin_lock_irqsave+0xa9/0xd0 [ 65.700724][ C1] _raw_spin_lock_irqsave+0x94/0xd0 [ 65.705901][ C1] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.711781][ C1] _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 65.717474][ C1] snd_pcm_period_elapsed+0x24/0x250 [ 65.722747][ C1] loopback_jiffies_timer_function+0x1a8/0x220 [ 65.728885][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 65.735359][ C1] call_timer_fn+0x1a5/0x6b0 [ 65.739934][ C1] ? add_timer_on+0x450/0x450 [ 65.744588][ C1] ? lock_downgrade+0x830/0x830 [ 65.749413][ C1] ? rwlock_bug.part.0+0x90/0x90 [ 65.754853][ C1] ? _raw_spin_unlock_irq+0x1f/0x80 [ 65.760041][ C1] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 65.768859][ C1] __run_timers.part.0+0x67c/0xa50 [ 65.773946][ C1] ? call_timer_fn+0x6b0/0x6b0 [ 65.778694][ C1] ? lapic_next_event+0x4d/0x80 [ 65.783533][ C1] ? clockevents_program_event+0x12b/0x350 [ 65.789322][ C1] ? kvm_sched_clock_read+0x14/0x40 [ 65.794496][ C1] ? sched_clock+0x2a/0x40 [ 65.798897][ C1] ? sched_clock_cpu+0x18/0x1b0 [ 65.803733][ C1] ? hrtimer_interrupt+0x6ea/0x930 [ 65.808835][ C1] run_timer_softirq+0xae/0x1a0 [ 65.813671][ C1] __do_softirq+0x202/0xa42 [ 65.818165][ C1] asm_call_on_stack+0xf/0x20 [ 65.822821][ C1] [ 65.825736][ C1] do_softirq_own_stack+0x9d/0xd0 [ 65.830745][ C1] irq_exit_rcu+0x235/0x280 [ 65.835225][ C1] sysvec_apic_timer_interrupt+0x51/0xf0 [ 65.840834][ C1] asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 65.846807][ C1] RIP: 0010:native_safe_halt+0xe/0x10 [ 65.852161][ C1] 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 [ 65.871997][ C1] RSP: 0018:ffffc90000d3fd10 EFLAGS: 00000293 [ 65.878055][ C1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff15cacb9 [ 65.886003][ C1] RDX: ffff8880a9630340 RSI: ffffffff88034020 RDI: 0000000000000000 [ 65.893947][ C1] RBP: ffff8880a6234064 R08: 0000000000000001 R09: 0000000000000001 [ 65.901892][ C1] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8880a6234064 [ 65.909892][ C1] R13: 1ffff920001a7fac R14: ffff8880a6234065 R15: 0000000000000001 [ 65.917857][ C1] ? acpi_safe_halt+0x90/0x180 [ 65.922605][ C1] acpi_safe_halt+0x95/0x180 [ 65.927168][ C1] acpi_idle_do_entry+0x15c/0x1b0 [ 65.932176][ C1] acpi_idle_enter+0x403/0xac0 [ 65.936925][ C1] ? acpi_idle_enter_bm+0x2d0/0x2d0 [ 65.942106][ C1] cpuidle_enter_state+0x150/0xa70 [ 65.947200][ C1] ? tick_nohz_idle_stop_tick+0x504/0xbc0 [ 65.952893][ C1] cpuidle_enter+0x4a/0xa0 [ 65.957284][ C1] do_idle+0x48e/0x730 [ 65.961326][ C1] ? arch_cpu_idle_exit+0x70/0x70 [ 65.966335][ C1] ? _raw_write_unlock_irqrestore+0x71/0x90 [ 65.972200][ C1] ? lockdep_hardirqs_on+0x53/0x100 [ 65.977380][ C1] cpu_startup_entry+0x14/0x20 [ 65.982138][ C1] secondary_startup_64_no_verify+0xa6/0xab [ 65.988010][ C1] Modules linked in: [ 65.991899][ C1] ---[ end trace ded6b7e62dfe892e ]--- [ 65.997344][ C1] RIP: 0010:print_shortest_lock_dependencies.cold+0x110/0x2af [ 66.004782][ C1] 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 [ 66.024361][ C1] RSP: 0018:ffffc90000da8898 EFLAGS: 00010003 [ 66.030401][ C1] RAX: 0000000000000001 RBX: ffffffff8cbdea10 RCX: 0000000000000000 [ 66.038357][ C1] RDX: 0000000000000002 RSI: ffffffff815c0ec7 RDI: 0000000000000015 [ 66.046305][ C1] RBP: ffffc90000da89c8 R08: 0000000000000004 R09: ffff8880ae720f8b [ 66.054251][ C1] R10: 0000000000000000 R11: 6c756e2820202020 R12: dffffc0000000000 [ 66.062206][ C1] R13: ffffffff8c9e73f8 R14: 0000000000000009 R15: 0000000000000001 [ 66.070152][ C1] FS: 0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 [ 66.079069][ C1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 66.085644][ C1] CR2: 000000000043e740 CR3: 0000000092452000 CR4: 00000000001506e0 [ 66.093597][ C1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 66.101550][ C1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 66.109502][ C1] Kernel panic - not syncing: Fatal exception in interrupt [ 66.117858][ C1] Kernel Offset: disabled [ 66.122185][ C1] Rebooting in 86400 seconds..