Warning: Permanently added '10.128.0.3' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 61.549526][ C1] [ 61.551887][ C1] ======================================================== [ 61.559079][ C1] WARNING: possible irq lock inversion dependency detected [ 61.566266][ C1] 5.6.0-syzkaller #0 Not tainted [ 61.571312][ C1] -------------------------------------------------------- [ 61.578486][ C1] swapper/1/0 just changed the state of lock: [ 61.586010][ C1] ffff888093a6fcd8 (&ctx->ctx_lock){..-.}-{2:2}, at: free_ioctx_users+0x2b/0x450 [ 61.595104][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 61.602620][ C1] (&pid->wait_pidfd){+.+.}-{2:2} [ 61.602628][ C1] [ 61.602628][ C1] [ 61.602628][ C1] and interrupts could create inverse lock ordering between them. [ 61.602628][ C1] [ 61.621946][ C1] [ 61.621946][ C1] other info that might help us debug this: [ 61.629992][ C1] Possible interrupt unsafe locking scenario: [ 61.629992][ C1] [ 61.638287][ C1] CPU0 CPU1 [ 61.643637][ C1] ---- ---- [ 61.649098][ C1] lock(&pid->wait_pidfd); [ 61.653576][ C1] local_irq_disable(); [ 61.660308][ C1] lock(&ctx->ctx_lock); [ 61.667238][ C1] lock(&pid->wait_pidfd); [ 61.674233][ C1] [ 61.678271][ C1] lock(&ctx->ctx_lock); [ 61.682755][ C1] [ 61.682755][ C1] *** DEADLOCK *** [ 61.682755][ C1] [ 61.691223][ C1] 2 locks held by swapper/1/0: [ 61.695952][ C1] #0: ffffffff899bc060 (rcu_callback){....}-{0:0}, at: rcu_core+0x520/0x1370 [ 61.704793][ C1] #1: ffffffff899bc180 (rcu_read_lock){....}-{1:2}, at: percpu_ref_switch_to_atomic_rcu+0x209/0x540 [ 61.715617][ C1] [ 61.715617][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 61.725066][ C1] -> (&pid->wait_pidfd){+.+.}-{2:2} { [ 61.730506][ C1] HARDIRQ-ON-W at: [ 61.734564][ C1] lock_acquire+0x1f2/0x8f0 [ 61.740867][ C1] _raw_spin_lock+0x2a/0x40 [ 61.747169][ C1] proc_pid_make_inode+0x1f9/0x3c0 [ 61.754100][ C1] proc_pid_instantiate+0x51/0x150 [ 61.761704][ C1] proc_pid_lookup+0x1da/0x340 [ 61.768263][ C1] proc_root_lookup+0x20/0x60 [ 61.774750][ C1] __lookup_slow+0x256/0x490 [ 61.781189][ C1] walk_component+0x418/0x6a0 [ 61.787665][ C1] link_path_walk.part.0+0x4f1/0xb50 [ 61.794744][ C1] path_openat+0x25a/0x27d0 [ 61.801043][ C1] do_filp_open+0x192/0x260 [ 61.807479][ C1] do_sys_openat2+0x585/0x7d0 [ 61.813960][ C1] do_sys_open+0xc3/0x140 [ 61.820104][ C1] do_syscall_64+0xf6/0x7d0 [ 61.826407][ C1] entry_SYSCALL_64_after_hwframe+0x49/0xb3 [ 61.834092][ C1] SOFTIRQ-ON-W at: [ 61.838233][ C1] lock_acquire+0x1f2/0x8f0 [ 61.844540][ C1] _raw_spin_lock+0x2a/0x40 [ 61.850842][ C1] proc_pid_make_inode+0x1f9/0x3c0 [ 61.857758][ C1] proc_pid_instantiate+0x51/0x150 [ 61.865633][ C1] proc_pid_lookup+0x1da/0x340 [ 61.872199][ C1] proc_root_lookup+0x20/0x60 [ 61.878698][ C1] __lookup_slow+0x256/0x490 [ 61.885088][ C1] walk_component+0x418/0x6a0 [ 61.891651][ C1] link_path_walk.part.0+0x4f1/0xb50 [ 61.898740][ C1] path_openat+0x25a/0x27d0 [ 61.905040][ C1] do_filp_open+0x192/0x260 [ 61.911347][ C1] do_sys_openat2+0x585/0x7d0 [ 61.917826][ C1] do_sys_open+0xc3/0x140 [ 61.923958][ C1] do_syscall_64+0xf6/0x7d0 [ 61.930268][ C1] entry_SYSCALL_64_after_hwframe+0x49/0xb3 [ 61.937954][ C1] INITIAL USE at: [ 61.941914][ C1] lock_acquire+0x1f2/0x8f0 [ 61.948130][ C1] _raw_spin_lock_irqsave+0x8c/0xbf [ 61.955056][ C1] __wake_up_common_lock+0xb4/0x130 [ 61.961976][ C1] do_notify_parent+0x19e/0xe60 [ 61.968541][ C1] do_exit+0x238f/0x2dd0 [ 61.974496][ C1] call_usermodehelper_exec_async+0x507/0x710 [ 61.982304][ C1] ret_from_fork+0x24/0x30 [ 61.988426][ C1] } [ 61.990997][ C1] ... key at: [] __key.53831+0x0/0x40 [ 61.998563][ C1] ... acquired at: [ 62.002444][ C1] _raw_spin_lock+0x2a/0x40 [ 62.007096][ C1] io_submit_one+0xc1b/0x2ec0 [ 62.011975][ C1] __ia32_compat_sys_io_submit+0x1bf/0x530 [ 62.017934][ C1] do_fast_syscall_32+0x270/0xe90 [ 62.023113][ C1] entry_SYSENTER_compat+0x70/0x7f [ 62.028365][ C1] [ 62.030673][ C1] -> (&ctx->ctx_lock){..-.}-{2:2} { [ 62.035847][ C1] IN-SOFTIRQ-W at: [ 62.039807][ C1] lock_acquire+0x1f2/0x8f0 [ 62.045938][ C1] _raw_spin_lock_irq+0x5b/0x80 [ 62.052443][ C1] free_ioctx_users+0x2b/0x450 [ 62.058852][ C1] percpu_ref_switch_to_atomic_rcu+0x494/0x540 [ 62.066640][ C1] rcu_core+0x59f/0x1370 [ 62.072506][ C1] __do_softirq+0x26c/0x9f7 [ 62.078719][ C1] irq_exit+0x192/0x1d0 [ 62.084498][ C1] smp_apic_timer_interrupt+0x19e/0x600 [ 62.091665][ C1] apic_timer_interrupt+0xf/0x20 [ 62.098223][ C1] native_safe_halt+0xe/0x10 [ 62.104443][ C1] default_idle+0x49/0x350 [ 62.110492][ C1] do_idle+0x393/0x690 [ 62.116192][ C1] cpu_startup_entry+0x14/0x20 [ 62.122588][ C1] start_secondary+0x2f3/0x400 [ 62.128977][ C1] secondary_startup_64+0xa4/0xb0 [ 62.135619][ C1] INITIAL USE at: [ 62.139554][ C1] lock_acquire+0x1f2/0x8f0 [ 62.145595][ C1] _raw_spin_lock_irq+0x5b/0x80 [ 62.151982][ C1] io_submit_one+0xbd6/0x2ec0 [ 62.158204][ C1] __ia32_compat_sys_io_submit+0x1bf/0x530 [ 62.165553][ C1] do_fast_syscall_32+0x270/0xe90 [ 62.172123][ C1] entry_SYSENTER_compat+0x70/0x7f [ 62.178766][ C1] } [ 62.181248][ C1] ... key at: [] __key.55314+0x0/0x40 [ 62.188692][ C1] ... acquired at: [ 62.192492][ C1] mark_lock+0x624/0xf10 [ 62.196881][ C1] __lock_acquire+0x1d28/0x4e00 [ 62.201965][ C1] lock_acquire+0x1f2/0x8f0 [ 62.206617][ C1] _raw_spin_lock_irq+0x5b/0x80 [ 62.211627][ C1] free_ioctx_users+0x2b/0x450 [ 62.216569][ C1] percpu_ref_switch_to_atomic_rcu+0x494/0x540 [ 62.222866][ C1] rcu_core+0x59f/0x1370 [ 62.227513][ C1] __do_softirq+0x26c/0x9f7 [ 62.232165][ C1] irq_exit+0x192/0x1d0 [ 62.236467][ C1] smp_apic_timer_interrupt+0x19e/0x600 [ 62.242333][ C1] apic_timer_interrupt+0xf/0x20 [ 62.247414][ C1] native_safe_halt+0xe/0x10 [ 62.252147][ C1] default_idle+0x49/0x350 [ 62.256720][ C1] do_idle+0x393/0x690 [ 62.260942][ C1] cpu_startup_entry+0x14/0x20 [ 62.265857][ C1] start_secondary+0x2f3/0x400 [ 62.270777][ C1] secondary_startup_64+0xa4/0xb0 [ 62.275952][ C1] [ 62.278263][ C1] [ 62.278263][ C1] stack backtrace: [ 62.284138][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.6.0-syzkaller #0 [ 62.291649][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 62.301686][ C1] Call Trace: [ 62.304954][ C1] [ 62.307787][ C1] dump_stack+0x188/0x20d [ 62.312095][ C1] check_usage_forwards.cold+0x20/0x29 [ 62.317525][ C1] ? check_usage_backwards+0x4e0/0x4e0 [ 62.322964][ C1] ? stack_trace_consume_entry+0x160/0x160 [ 62.328799][ C1] ? __read_once_size_nocheck.constprop.0+0x10/0x10 [ 62.336662][ C1] ? get_stack_info+0x32/0x13e [ 62.341400][ C1] ? save_trace+0x42/0x9f0 [ 62.345797][ C1] mark_lock+0x624/0xf10 [ 62.350033][ C1] ? check_usage_backwards+0x4e0/0x4e0 [ 62.355538][ C1] ? print_usage_bug+0x240/0x240 [ 62.360485][ C1] ? print_usage_bug+0x240/0x240 [ 62.365400][ C1] ? mark_lock+0x12b/0xf10 [ 62.369908][ C1] __lock_acquire+0x1d28/0x4e00 [ 62.374741][ C1] ? mark_held_locks+0xe0/0xe0 [ 62.379495][ C1] ? __wake_up_common_lock+0xde/0x130 [ 62.384845][ C1] lock_acquire+0x1f2/0x8f0 [ 62.389326][ C1] ? free_ioctx_users+0x2b/0x450 [ 62.394241][ C1] ? lock_release+0x800/0x800 [ 62.398902][ C1] ? lock_acquire+0x1f2/0x8f0 [ 62.403557][ C1] ? percpu_ref_switch_to_atomic_rcu+0x209/0x540 [ 62.409857][ C1] ? lock_release+0x800/0x800 [ 62.414538][ C1] ? _raw_spin_unlock_irqrestore+0x62/0xe0 [ 62.420420][ C1] _raw_spin_lock_irq+0x5b/0x80 [ 62.425260][ C1] ? free_ioctx_users+0x2b/0x450 [ 62.430185][ C1] free_ioctx_users+0x2b/0x450 [ 62.435885][ C1] percpu_ref_switch_to_atomic_rcu+0x494/0x540 [ 62.442025][ C1] rcu_core+0x59f/0x1370 [ 62.446243][ C1] ? __rcu_read_unlock+0x700/0x700 [ 62.451345][ C1] ? rcu_read_lock_sched_held+0x9c/0xd0 [ 62.456867][ C1] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 62.462822][ C1] ? run_rebalance_domains+0x202/0x2c0 [ 62.468255][ C1] __do_softirq+0x26c/0x9f7 [ 62.472734][ C1] irq_exit+0x192/0x1d0 [ 62.476861][ C1] smp_apic_timer_interrupt+0x19e/0x600 [ 62.482467][ C1] apic_timer_interrupt+0xf/0x20 [ 62.487371][ C1] [ 62.490371][ C1] RIP: 0010:native_safe_halt+0xe/0x10 [ 62.495800][ C1] Code: cc cc cc cc cc cc cc cc cc cc cc cc e9 07 00 00 00 0f 00 2d 84 1e 59 00 f4 c3 66 90 e9 07 00 00 00 0f 00 2d 74 1e 59 00 fb f4 cc 41 56 41 55 41 54 55 53 e8 83 91 91 f9 e8 ce 2c ca fb 0f 1f [ 62.515819][ C1] RSP: 0018:ffffc90000d3fdb8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 [ 62.524215][ C1] RAX: 1ffffffff132930f RBX: ffff8880a95f2340 RCX: 0000000000000000 [ 62.532252][ C1] RDX: dffffc0000000000 RSI: 0000000000000006 RDI: ffff8880a95f2c04 [ 62.540220][ C1] RBP: dffffc0000000000 R08: ffff8880a95f2340 R09: 0000000000000000 [ 62.548176][ C1] R10: 0000000000000000 R11: 0000000000000000 R12: ffffed10152be468 [ 62.556138][ C1] R13: 0000000000000001 R14: ffffffff8a890cc0 R15: 0000000000000000 [ 62.564130][ C1] default_idle+0x49/0x350 [ 62.568541][ C1] do_idle+0x393/0x690 [ 62.572591][ C1] ? arch_cpu_idle_exit+0x70/0x70 [ 62.577614][ C1] ? _raw_spin_unlock_irqrestore+0x62/0xe0 [ 62.583413][ C1] ? lockdep_hardirqs_on+0x463/0x620 [ 62.590383][ C1] cpu_startup_entry+0x14/0x20 [ 62.595181][ C1] start_secondary+0x2f3/0x400 [ 62.599921][ C1] ? set_cpu_sibling_map+0x1ed0/0x1ed0 [ 62.605360][ C1] secondary_startup_64+0xa4/0xb0