Warning: Permanently added '10.128.0.33' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 68.298503][ C0] [ 68.300909][ C0] ======================================================== [ 68.308231][ C0] WARNING: possible irq lock inversion dependency detected [ 68.315504][ C0] 5.3.0-rc6-next-20190830 #75 Not tainted [ 68.321207][ C0] -------------------------------------------------------- [ 68.328385][ C0] swapper/0/0 just changed the state of lock: [ 68.334625][ C0] ffff888096c71b58 (&(&ctx->ctx_lock)->rlock){..-.}, at: free_ioctx_users+0x2d/0x490 [ 68.344689][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 68.352361][ C0] (&fiq->waitq){+.+.} [ 68.352368][ C0] [ 68.352368][ C0] [ 68.352368][ C0] and interrupts could create inverse lock ordering between them. [ 68.352368][ C0] [ 68.370796][ C0] [ 68.370796][ C0] other info that might help us debug this: [ 68.378844][ C0] Possible interrupt unsafe locking scenario: [ 68.378844][ C0] [ 68.387204][ C0] CPU0 CPU1 [ 68.392559][ C0] ---- ---- [ 68.397906][ C0] lock(&fiq->waitq); [ 68.402081][ C0] local_irq_disable(); [ 68.408836][ C0] lock(&(&ctx->ctx_lock)->rlock); [ 68.416590][ C0] lock(&fiq->waitq); [ 68.423161][ C0] [ 68.426600][ C0] lock(&(&ctx->ctx_lock)->rlock); [ 68.431986][ C0] [ 68.431986][ C0] *** DEADLOCK *** [ 68.431986][ C0] [ 68.440118][ C0] 2 locks held by swapper/0/0: [ 68.444860][ C0] #0: ffffffff88fa7e40 (rcu_callback){....}, at: rcu_core+0x60e/0x1560 [ 68.453193][ C0] #1: ffffffff88fa7e80 (rcu_read_lock_sched){....}, at: percpu_ref_switch_to_atomic_rcu+0x20e/0x570 [ 68.464176][ C0] [ 68.464176][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 68.473533][ C0] -> (&fiq->waitq){+.+.} { [ 68.478288][ C0] HARDIRQ-ON-W at: [ 68.482455][ C0] lock_acquire+0x190/0x410 [ 68.488835][ C0] _raw_spin_lock+0x2f/0x40 [ 68.495154][ C0] flush_bg_queue+0x1f1/0x3b0 [ 68.501643][ C0] fuse_request_queue_background+0x2f8/0x5b0 [ 68.509429][ C0] fuse_request_send_background+0x58/0x110 [ 68.517043][ C0] cuse_channel_open+0x5c3/0x839 [ 68.523943][ C0] misc_open+0x395/0x4c0 [ 68.530018][ C0] chrdev_open+0x245/0x6b0 [ 68.536399][ C0] do_dentry_open+0x4df/0x1250 [ 68.542973][ C0] vfs_open+0xa0/0xd0 [ 68.548761][ C0] path_openat+0x10e9/0x46d0 [ 68.555229][ C0] do_filp_open+0x1a1/0x280 [ 68.561743][ C0] do_sys_open+0x3fe/0x5d0 [ 68.567967][ C0] __x64_sys_openat+0x9d/0x100 [ 68.574549][ C0] do_syscall_64+0xfa/0x760 [ 68.580869][ C0] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 68.588574][ C0] SOFTIRQ-ON-W at: [ 68.592634][ C0] lock_acquire+0x190/0x410 [ 68.598942][ C0] _raw_spin_lock+0x2f/0x40 [ 68.605257][ C0] flush_bg_queue+0x1f1/0x3b0 [ 68.611760][ C0] fuse_request_queue_background+0x2f8/0x5b0 [ 68.619580][ C0] fuse_request_send_background+0x58/0x110 [ 68.627897][ C0] cuse_channel_open+0x5c3/0x839 [ 68.634724][ C0] misc_open+0x395/0x4c0 [ 68.640826][ C0] chrdev_open+0x245/0x6b0 [ 68.647112][ C0] do_dentry_open+0x4df/0x1250 [ 68.653690][ C0] vfs_open+0xa0/0xd0 [ 68.659579][ C0] path_openat+0x10e9/0x46d0 [ 68.665974][ C0] do_filp_open+0x1a1/0x280 [ 68.672289][ C0] do_sys_open+0x3fe/0x5d0 [ 68.678916][ C0] __x64_sys_openat+0x9d/0x100 [ 68.685527][ C0] do_syscall_64+0xfa/0x760 [ 68.691906][ C0] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 68.699603][ C0] INITIAL USE at: [ 68.703575][ C0] lock_acquire+0x190/0x410 [ 68.709801][ C0] _raw_spin_lock+0x2f/0x40 [ 68.716034][ C0] flush_bg_queue+0x1f1/0x3b0 [ 68.722593][ C0] fuse_request_queue_background+0x2f8/0x5b0 [ 68.730383][ C0] fuse_request_send_background+0x58/0x110 [ 68.737912][ C0] cuse_channel_open+0x5c3/0x839 [ 68.744610][ C0] misc_open+0x395/0x4c0 [ 68.750618][ C0] chrdev_open+0x245/0x6b0 [ 68.756818][ C0] do_dentry_open+0x4df/0x1250 [ 68.763308][ C0] vfs_open+0xa0/0xd0 [ 68.769099][ C0] path_openat+0x10e9/0x46d0 [ 68.775412][ C0] do_filp_open+0x1a1/0x280 [ 68.781641][ C0] do_sys_open+0x3fe/0x5d0 [ 68.787773][ C0] __x64_sys_openat+0x9d/0x100 [ 68.794340][ C0] do_syscall_64+0xfa/0x760 [ 68.800576][ C0] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 68.808262][ C0] } [ 68.810850][ C0] ... key at: [] __key.44810+0x0/0x40 [ 68.818805][ C0] ... acquired at: [ 68.822737][ C0] _raw_spin_lock+0x2f/0x40 [ 68.827397][ C0] io_submit_one+0xefa/0x2ef0 [ 68.832297][ C0] __x64_sys_io_submit+0x1bd/0x570 [ 68.837744][ C0] do_syscall_64+0xfa/0x760 [ 68.842478][ C0] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 68.848522][ C0] [ 68.850847][ C0] -> (&(&ctx->ctx_lock)->rlock){..-.} { [ 68.856428][ C0] IN-SOFTIRQ-W at: [ 68.860400][ C0] lock_acquire+0x190/0x410 [ 68.866540][ C0] _raw_spin_lock_irq+0x60/0x80 [ 68.873090][ C0] free_ioctx_users+0x2d/0x490 [ 68.879496][ C0] percpu_ref_switch_to_atomic_rcu+0x4c0/0x570 [ 68.887465][ C0] rcu_core+0x581/0x1560 [ 68.893347][ C0] rcu_core_si+0x9/0x10 [ 68.899203][ C0] __do_softirq+0x262/0x98c [ 68.905397][ C0] irq_exit+0x19b/0x1e0 [ 68.911366][ C0] smp_apic_timer_interrupt+0x1a3/0x610 [ 68.918644][ C0] apic_timer_interrupt+0xf/0x20 [ 68.925304][ C0] native_safe_halt+0xe/0x10 [ 68.931543][ C0] default_enter_idle+0x71/0xf0 [ 68.938033][ C0] cpuidle_enter_state+0xef/0xfb0 [ 68.944696][ C0] cpuidle_enter+0x4f/0xa0 [ 68.950750][ C0] do_idle+0x45f/0x6e0 [ 68.956454][ C0] cpu_startup_entry+0x1b/0x20 [ 68.962853][ C0] rest_init+0x245/0x37b [ 68.969084][ C0] arch_call_rest_init+0xe/0x1b [ 68.976579][ C0] start_kernel+0x904/0x943 [ 68.982727][ C0] x86_64_start_reservations+0x29/0x2b [ 68.990018][ C0] x86_64_start_kernel+0x77/0x7b [ 68.996742][ C0] secondary_startup_64+0xa4/0xb0 [ 69.003402][ C0] INITIAL USE at: [ 69.007288][ C0] lock_acquire+0x190/0x410 [ 69.013348][ C0] _raw_spin_lock_irq+0x60/0x80 [ 69.019800][ C0] io_submit_one+0xeb5/0x2ef0 [ 69.026079][ C0] __x64_sys_io_submit+0x1bd/0x570 [ 69.032746][ C0] do_syscall_64+0xfa/0x760 [ 69.038804][ C0] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 69.046238][ C0] } [ 69.048732][ C0] ... key at: [] __key.54358+0x0/0x40 [ 69.056217][ C0] ... acquired at: [ 69.060012][ C0] mark_lock+0x517/0x1220 [ 69.064498][ C0] __lock_acquire+0x1e8e/0x4a00 [ 69.069509][ C0] lock_acquire+0x190/0x410 [ 69.074256][ C0] _raw_spin_lock_irq+0x60/0x80 [ 69.079268][ C0] free_ioctx_users+0x2d/0x490 [ 69.084240][ C0] percpu_ref_switch_to_atomic_rcu+0x4c0/0x570 [ 69.090692][ C0] rcu_core+0x581/0x1560 [ 69.095138][ C0] rcu_core_si+0x9/0x10 [ 69.099475][ C0] __do_softirq+0x262/0x98c [ 69.104138][ C0] irq_exit+0x19b/0x1e0 [ 69.108451][ C0] smp_apic_timer_interrupt+0x1a3/0x610 [ 69.114155][ C0] apic_timer_interrupt+0xf/0x20 [ 69.119253][ C0] native_safe_halt+0xe/0x10 [ 69.124165][ C0] default_enter_idle+0x71/0xf0 [ 69.129707][ C0] cpuidle_enter_state+0xef/0xfb0 [ 69.135027][ C0] cpuidle_enter+0x4f/0xa0 [ 69.139604][ C0] do_idle+0x45f/0x6e0 [ 69.143828][ C0] cpu_startup_entry+0x1b/0x20 [ 69.148992][ C0] rest_init+0x245/0x37b [ 69.153548][ C0] arch_call_rest_init+0xe/0x1b [ 69.158556][ C0] start_kernel+0x904/0x943 [ 69.163224][ C0] x86_64_start_reservations+0x29/0x2b [ 69.168839][ C0] x86_64_start_kernel+0x77/0x7b [ 69.173933][ C0] secondary_startup_64+0xa4/0xb0 [ 69.179110][ C0] [ 69.181420][ C0] [ 69.181420][ C0] stack backtrace: [ 69.187382][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.3.0-rc6-next-20190830 #75 [ 69.195847][ C0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 69.205891][ C0] Call Trace: [ 69.209162][ C0] [ 69.212050][ C0] dump_stack+0x172/0x1f0 [ 69.216454][ C0] print_irq_inversion_bug.part.0+0x2e4/0x2f1 [ 69.222522][ C0] check_usage_forwards.cold+0x20/0x29 [ 69.228985][ C0] ? check_usage_backwards+0x330/0x330 [ 69.234429][ C0] ? save_trace+0x3e/0x8c0 [ 69.238832][ C0] mark_lock+0x517/0x1220 [ 69.243321][ C0] ? check_usage_backwards+0x330/0x330 [ 69.248828][ C0] __lock_acquire+0x1e8e/0x4a00 [ 69.253663][ C0] ? __kasan_check_read+0x11/0x20 [ 69.258672][ C0] ? mark_lock+0xc2/0x1220 [ 69.263071][ C0] ? mark_held_locks+0xf0/0xf0 [ 69.267817][ C0] lock_acquire+0x190/0x410 [ 69.272533][ C0] ? free_ioctx_users+0x2d/0x490 [ 69.277459][ C0] _raw_spin_lock_irq+0x60/0x80 [ 69.282294][ C0] ? free_ioctx_users+0x2d/0x490 [ 69.287213][ C0] free_ioctx_users+0x2d/0x490 [ 69.292040][ C0] ? rcu_dynticks_curr_cpu_in_eqs+0x54/0xb0 [ 69.297926][ C0] percpu_ref_switch_to_atomic_rcu+0x4c0/0x570 [ 69.304112][ C0] ? percpu_ref_exit+0xd0/0xd0 [ 69.308862][ C0] rcu_core+0x581/0x1560 [ 69.313162][ C0] ? __rcu_read_unlock+0x6b0/0x6b0 [ 69.318266][ C0] ? rcu_read_lock_sched_held+0x9c/0xd0 [ 69.323795][ C0] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 69.329766][ C0] ? run_rebalance_domains+0x227/0x2d0 [ 69.335211][ C0] rcu_core_si+0x9/0x10 [ 69.339357][ C0] __do_softirq+0x262/0x98c [ 69.343845][ C0] ? sched_clock_cpu+0x1b/0x1b0 [ 69.348683][ C0] irq_exit+0x19b/0x1e0 [ 69.352824][ C0] smp_apic_timer_interrupt+0x1a3/0x610 [ 69.358358][ C0] apic_timer_interrupt+0xf/0x20 [ 69.363387][ C0] [ 69.366841][ C0] RIP: 0010:native_safe_halt+0xe/0x10 [ 69.372199][ C0] Code: 38 c1 69 fa eb 8a 90 90 90 90 90 90 e9 07 00 00 00 0f 00 2d 64 b8 64 00 f4 c3 66 90 e9 07 00 00 00 0f 00 2d 54 b8 64 00 fb f4 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 e8 5e a7 1c fa e8 69 [ 69.391857][ C0] RSP: 0018:ffffffff88e07c50 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 [ 69.400254][ C0] RAX: 1ffffffff11e5db7 RBX: 0000000000000000 RCX: 0000000000000000 [ 69.408216][ C0] RDX: dffffc0000000000 RSI: 0000000000000006 RDI: ffffffff88e7aa1c [ 69.416180][ C0] RBP: ffffffff88e07c80 R08: ffffffff88e7a180 R09: 0000000000000000 [ 69.424187][ C0] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 [ 69.432148][ C0] R13: 0000000000000000 R14: 0000000000000060 R15: 0000000000000001 [ 69.440124][ C0] ? default_idle+0x4e/0x360 [ 69.444702][ C0] default_enter_idle+0x71/0xf0 [ 69.449851][ C0] cpuidle_enter_state+0xef/0xfb0 [ 69.455220][ C0] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 69.461445][ C0] cpuidle_enter+0x4f/0xa0 [ 69.465846][ C0] do_idle+0x45f/0x6e0 [ 69.470019][ C0] ? arch_cpu_idle_exit+0x80/0x80 [ 69.475025][ C0] ? trace_hardirqs_on+0x30/0x240 [ 69.480272][ C0] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 69.486562][ C0] ? debug_smp_processor_id+0x3c/0x214 [ 69.492054][ C0] cpu_startup_entry+0x1b/0x20 [ 69.496807][ C0] rest_init+0x245/0x37b [ 69.501037][ C0] arch_call_rest_init+0xe/0x1b [ 69.505958][ C0] start_kernel+0x904/0x943 [ 69.510666][ C0] ? mem_encrypt_init+0xb/0xb [ 69.515332][ C0] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 69.521554][ C0] ? x86_family+0x41/0x50 [ 69.525876][ C0] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 69.532467][ C0] x86_64_start_reservations+0x29/0x2b [ 69.537918][ C0] x86_64_start_kernel+0x77/0x7b [ 69.542843][ C0] secondary_startup_64+0xa4/0xb0