[ 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.220' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 58.358046][ C0] [ 58.360379][ C0] ======================================================== [ 58.367579][ C0] WARNING: possible irq lock inversion dependency detected [ 58.374745][ C0] 5.9.0-rc4-next-20200908-syzkaller #0 Not tainted [ 58.381212][ C0] -------------------------------------------------------- [ 58.388378][ C0] swapper/0/0 just changed the state of lock: [ 58.394412][ C0] ffff8882153bc908 (&group->lock){..-.}-{2:2}, at: _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 58.404288][ C0] but this lock took another, SOFTIRQ-READ-unsafe lock in the past: [ 58.412225][ C0] (&card->ctl_files_rwlock){.+.+}-{2:2} [ 58.412236][ C0] [ 58.412236][ C0] [ 58.412236][ C0] and interrupts could create inverse lock ordering between them. [ 58.412236][ C0] [ 58.432105][ C0] [ 58.432105][ C0] other info that might help us debug this: [ 58.440133][ C0] Possible interrupt unsafe locking scenario: [ 58.440133][ C0] [ 58.448418][ C0] CPU0 CPU1 [ 58.453753][ C0] ---- ---- [ 58.459089][ C0] lock(&card->ctl_files_rwlock); [ 58.464171][ C0] local_irq_disable(); [ 58.470894][ C0] lock(&group->lock); [ 58.477654][ C0] lock(&card->ctl_files_rwlock); [ 58.485252][ C0] [ 58.488683][ C0] lock(&group->lock); [ 58.492981][ C0] [ 58.492981][ C0] *** DEADLOCK *** [ 58.492981][ C0] [ 58.501098][ C0] 1 lock held by swapper/0/0: [ 58.505739][ C0] #0: ffffc90000007d68 ((&dpcm->timer)){+.-.}-{0:0}, at: call_timer_fn+0xdb/0x760 [ 58.515001][ C0] [ 58.515001][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 58.524347][ C0] -> (&card->ctl_files_rwlock){.+.+}-{2:2} { [ 58.530391][ C0] HARDIRQ-ON-R at: [ 58.534434][ C0] lock_acquire+0x1f3/0xaf0 [ 58.540730][ C0] _raw_read_lock+0x5b/0x70 [ 58.547027][ C0] snd_ctl_notify.part.0+0x36/0x550 [ 58.554017][ C0] snd_ctl_notify+0x8f/0xb0 [ 58.561700][ C0] __snd_ctl_add_replace+0x638/0x800 [ 58.568778][ C0] snd_ctl_add_replace+0x76/0x130 [ 58.575595][ C0] snd_dummy_probe+0xbbf/0x1050 [ 58.582241][ C0] platform_drv_probe+0x87/0x140 [ 58.588983][ C0] really_probe+0x282/0x9f0 [ 58.595276][ C0] driver_probe_device+0xfe/0x1d0 [ 58.602092][ C0] __device_attach_driver+0x1c2/0x220 [ 58.609254][ C0] bus_for_each_drv+0x15f/0x1e0 [ 58.615893][ C0] __device_attach+0x228/0x470 [ 58.622459][ C0] bus_probe_device+0x1e4/0x290 [ 58.629101][ C0] device_add+0xb17/0x1c40 [ 58.635319][ C0] platform_device_add+0x34f/0x6d0 [ 58.642234][ C0] platform_device_register_full+0x38c/0x4e0 [ 58.650007][ C0] alsa_card_dummy_init+0x1cc/0x2e0 [ 58.656998][ C0] do_one_initcall+0x10a/0x7b0 [ 58.663562][ C0] kernel_init_freeable+0x5e9/0x66d [ 58.670553][ C0] kernel_init+0xd/0x1c0 [ 58.676589][ C0] ret_from_fork+0x1f/0x30 [ 58.682792][ C0] SOFTIRQ-ON-R at: [ 58.686833][ C0] lock_acquire+0x1f3/0xaf0 [ 58.693128][ C0] _raw_read_lock+0x5b/0x70 [ 58.699450][ C0] snd_ctl_notify.part.0+0x36/0x550 [ 58.706438][ C0] snd_ctl_notify+0x8f/0xb0 [ 58.712733][ C0] __snd_ctl_add_replace+0x638/0x800 [ 58.719812][ C0] snd_ctl_add_replace+0x76/0x130 [ 58.726628][ C0] snd_dummy_probe+0xbbf/0x1050 [ 58.733282][ C0] platform_drv_probe+0x87/0x140 [ 58.740021][ C0] really_probe+0x282/0x9f0 [ 58.746328][ C0] driver_probe_device+0xfe/0x1d0 [ 58.753146][ C0] __device_attach_driver+0x1c2/0x220 [ 58.760312][ C0] bus_for_each_drv+0x15f/0x1e0 [ 58.766953][ C0] __device_attach+0x228/0x470 [ 58.773505][ C0] bus_probe_device+0x1e4/0x290 [ 58.780147][ C0] device_add+0xb17/0x1c40 [ 58.786367][ C0] platform_device_add+0x34f/0x6d0 [ 58.793272][ C0] platform_device_register_full+0x38c/0x4e0 [ 58.801048][ C0] alsa_card_dummy_init+0x1cc/0x2e0 [ 58.808038][ C0] do_one_initcall+0x10a/0x7b0 [ 58.814594][ C0] kernel_init_freeable+0x5e9/0x66d [ 58.821583][ C0] kernel_init+0xd/0x1c0 [ 58.827615][ C0] ret_from_fork+0x1f/0x30 [ 58.833817][ C0] (null) at: [ 58.837358][ C0] general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN [ 58.849043][ C0] KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] [ 58.857423][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.9.0-rc4-next-20200908-syzkaller #0 [ 58.866490][ C0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 58.876538][ C0] RIP: 0010:print_shortest_lock_dependencies.cold+0x110/0x2af [ 58.883962][ C0] Code: 48 8b 04 24 48 c1 e8 03 42 80 3c 20 00 74 09 48 8b 3c 24 e8 dd fb de 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 [ 58.903545][ C0] RSP: 0018:ffffc90000007870 EFLAGS: 00010003 [ 58.909591][ C0] RAX: 0000000000000001 RBX: ffffffff8c8d3cc0 RCX: 0000000000000000 [ 58.917533][ C0] RDX: 0000000000000002 RSI: ffffffff815bc817 RDI: 0000000000000015 [ 58.925475][ C0] RBP: ffffc900000079a0 R08: 0000000000000004 R09: ffff8880ae620f8b [ 58.933416][ C0] R10: 0000000000000000 R11: 6c756e2820202020 R12: dffffc0000000000 [ 58.941357][ C0] R13: ffffffff8c6de1d0 R14: 0000000000000009 R15: 0000000000000001 [ 58.949312][ C0] FS: 0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 [ 58.958212][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 58.964766][ C0] CR2: 00000000200000c0 CR3: 0000000093f18000 CR4: 00000000001506f0 [ 58.972710][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 58.980662][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 58.988610][ C0] Call Trace: [ 58.991867][ C0] [ 58.994730][ C0] print_irq_inversion_bug.part.0+0x2c6/0x2ee [ 59.000799][ C0] mark_lock.cold+0x38/0x10d [ 59.005398][ C0] ? lock_chain_count+0x20/0x20 [ 59.010220][ C0] ? lock_is_held_type+0xbb/0xf0 [ 59.015126][ C0] ? find_held_lock+0x2d/0x110 [ 59.019864][ C0] ? debug_object_activate+0x287/0x3e0 [ 59.025294][ C0] ? lock_downgrade+0x830/0x830 [ 59.030151][ C0] __lock_acquire+0x117d/0x55d0 [ 59.035000][ C0] ? __round_jiffies_relative+0x62/0xf0 [ 59.040518][ C0] ? lock_downgrade+0x830/0x830 [ 59.045351][ C0] ? lockdep_hardirqs_on_prepare+0x530/0x530 [ 59.051304][ C0] ? mark_lock+0xf7/0x2300 [ 59.055692][ C0] lock_acquire+0x1f3/0xaf0 [ 59.060167][ C0] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 59.066044][ C0] ? lock_release+0x8f0/0x8f0 [ 59.070691][ C0] ? find_held_lock+0x2d/0x110 [ 59.075433][ C0] ? loopback_jiffies_timer_function+0x188/0x220 [ 59.081731][ C0] ? _raw_spin_lock_irqsave+0xa9/0xd0 [ 59.087074][ C0] ? lockdep_hardirqs_off+0x96/0xd0 [ 59.092246][ C0] _raw_spin_lock_irqsave+0x94/0xd0 [ 59.097429][ C0] ? _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 59.103297][ C0] _snd_pcm_stream_lock_irqsave+0x9f/0xd0 [ 59.108986][ C0] snd_pcm_period_elapsed+0x24/0x250 [ 59.114243][ C0] loopback_jiffies_timer_function+0x1a8/0x220 [ 59.120378][ C0] call_timer_fn+0x1ac/0x760 [ 59.124950][ C0] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 59.131420][ C0] ? msleep_interruptible+0x130/0x130 [ 59.136832][ C0] ? lock_downgrade+0x830/0x830 [ 59.141747][ C0] ? _raw_spin_unlock_irq+0x1f/0x80 [ 59.146919][ C0] ? lockdep_hardirqs_on_prepare+0x19c/0x530 [ 59.152869][ C0] ? _raw_spin_unlock_irq+0x1f/0x80 [ 59.158082][ C0] ? loopback_jiffies_timer_pos_update+0xf60/0xf60 [ 59.164552][ C0] __run_timers.part.0+0x67c/0xaa0 [ 59.169636][ C0] ? call_timer_fn+0x760/0x760 [ 59.174371][ C0] ? clockevents_program_event+0x12b/0x350 [ 59.180150][ C0] ? kvm_sched_clock_read+0x14/0x40 [ 59.185319][ C0] ? sched_clock+0x2a/0x40 [ 59.189705][ C0] ? sched_clock_cpu+0x18/0x1b0 [ 59.194525][ C0] run_timer_softirq+0xae/0x1a0 [ 59.199347][ C0] __do_softirq+0x1f7/0xa91 [ 59.203820][ C0] asm_call_on_stack+0xf/0x20 [ 59.208502][ C0] [ 59.211413][ C0] do_softirq_own_stack+0x9d/0xd0 [ 59.216408][ C0] irq_exit_rcu+0x235/0x280 [ 59.220908][ C0] sysvec_apic_timer_interrupt+0x51/0xf0 [ 59.226533][ C0] asm_sysvec_apic_timer_interrupt+0x12/0x20 [ 59.232521][ C0] RIP: 0010:native_safe_halt+0xe/0x10 [ 59.237865][ C0] Code: ff 4c 89 ef e8 23 c4 b4 f9 e9 8e fe ff ff 48 89 df e8 16 c4 b4 f9 eb 8a cc cc cc cc e9 07 00 00 00 0f 00 2d 94 f6 4a 00 fb f4 90 e9 07 00 00 00 0f 00 2d 84 f6 4a 00 f4 c3 cc cc 55 53 e8 e9 [ 59.257452][ C0] RSP: 0018:ffffffff89a07cd8 EFLAGS: 00000293 [ 59.263509][ C0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff15796a9 [ 59.271450][ C0] RDX: ffffffff89a99dc0 RSI: ffffffff87fdd050 RDI: 0000000000000000 [ 59.279393][ C0] RBP: ffff8880a67b3064 R08: 0000000000000001 R09: 0000000000000001 [ 59.287335][ C0] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8880a67b3064 [ 59.295277][ C0] R13: 1ffffffff1340fa5 R14: ffff8880a67b3065 R15: 0000000000000001 [ 59.303225][ C0] ? acpi_safe_halt+0x90/0x180 [ 59.307962][ C0] acpi_safe_halt+0x95/0x180 [ 59.312541][ C0] acpi_idle_do_entry+0x15c/0x1b0 [ 59.317536][ C0] acpi_idle_enter+0x403/0xac0 [ 59.322268][ C0] ? acpi_idle_enter_bm+0x2d0/0x2d0 [ 59.327438][ C0] cpuidle_enter_state+0x150/0xa70 [ 59.332537][ C0] ? tick_nohz_idle_stop_tick+0x5af/0xc40 [ 59.338228][ C0] cpuidle_enter+0x4a/0xa0 [ 59.342632][ C0] do_idle+0x48e/0x730 [ 59.346671][ C0] ? arch_cpu_idle_exit+0x70/0x70 [ 59.351677][ C0] ? trace_init_perf_perm_irq_work_exit+0xe/0xe [ 59.357892][ C0] cpu_startup_entry+0x14/0x20 [ 59.362625][ C0] start_kernel+0x490/0x4b1 [ 59.367111][ C0] secondary_startup_64+0xa4/0xb0 [ 59.372104][ C0] Modules linked in: [ 59.375976][ C0] ---[ end trace 7b8dcf330d33be72 ]--- [ 59.381408][ C0] RIP: 0010:print_shortest_lock_dependencies.cold+0x110/0x2af [ 59.388832][ C0] Code: 48 8b 04 24 48 c1 e8 03 42 80 3c 20 00 74 09 48 8b 3c 24 e8 dd fb de 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 [ 59.408424][ C0] RSP: 0018:ffffc90000007870 EFLAGS: 00010003 [ 59.414464][ C0] RAX: 0000000000000001 RBX: ffffffff8c8d3cc0 RCX: 0000000000000000 [ 59.422405][ C0] RDX: 0000000000000002 RSI: ffffffff815bc817 RDI: 0000000000000015 [ 59.430358][ C0] RBP: ffffc900000079a0 R08: 0000000000000004 R09: ffff8880ae620f8b [ 59.438312][ C0] R10: 0000000000000000 R11: 6c756e2820202020 R12: dffffc0000000000 [ 59.446266][ C0] R13: ffffffff8c6de1d0 R14: 0000000000000009 R15: 0000000000000001 [ 59.454213][ C0] FS: 0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 [ 59.463120][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 59.469686][ C0] CR2: 00000000200000c0 CR3: 0000000093f18000 CR4: 00000000001506f0 [ 59.477642][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 59.485584][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 59.493537][ C0] Kernel panic - not syncing: Fatal exception in interrupt [ 59.501964][ C0] Kernel Offset: disabled [ 59.506280][ C0] Rebooting in 86400 seconds..