================================
WARNING: inconsistent lock state
5.9.0-rc8-next-20201008-syzkaller #0 Not tainted
--------------------------------
inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage.
syz-executor.4/6903 [HC0[0]:SC1[1]:HE0:SE0] takes:
ffff888029235a18 (&xa->xa_lock#8){+.?.}-{2:2}, at: xa_destroy+0xaa/0x350 lib/xarray.c:2205
{SOFTIRQ-ON-W} state was registered at:
  lock_acquire+0x1f2/0xaa0 kernel/locking/lockdep.c:5419
  __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
  _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151
  spin_lock include/linux/spinlock.h:354 [inline]
  io_uring_add_task_file fs/io_uring.c:8607 [inline]
  io_uring_add_task_file+0x207/0x430 fs/io_uring.c:8590
  io_uring_get_fd fs/io_uring.c:9116 [inline]
  io_uring_create fs/io_uring.c:9280 [inline]
  io_uring_setup+0x2727/0x3660 fs/io_uring.c:9314
  do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
  entry_SYSCALL_64_after_hwframe+0x44/0xa9
irq event stamp: 741689
hardirqs last  enabled at (741688): [<ffffffff8847f0df>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
hardirqs last  enabled at (741688): [<ffffffff8847f0df>] _raw_spin_unlock_irqrestore+0x6f/0x90 kernel/locking/spinlock.c:191
hardirqs last disabled at (741689): [<ffffffff8847f6c9>] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline]
hardirqs last disabled at (741689): [<ffffffff8847f6c9>] _raw_spin_lock_irqsave+0xa9/0xd0 kernel/locking/spinlock.c:159
softirqs last  enabled at (741494): [<ffffffff812b48f6>] memcpy include/linux/string.h:399 [inline]
softirqs last  enabled at (741494): [<ffffffff812b48f6>] fpu__copy+0x176/0x6a0 arch/x86/kernel/fpu/core.c:240
softirqs last disabled at (741677): [<ffffffff88600f2f>] asm_call_irq_on_stack+0xf/0x20

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(&xa->xa_lock#8);
  <Interrupt>
    lock(&xa->xa_lock#8);

 *** DEADLOCK ***

6 locks held by syz-executor.4/6903:
 #0: ffffffff8a616570 (dup_mmap_sem){.+.+}-{0:0}, at: dup_mmap kernel/fork.c:478 [inline]
 #0: ffffffff8a616570 (dup_mmap_sem){.+.+}-{0:0}, at: dup_mm+0x108/0x12f0 kernel/fork.c:1357
 #1: ffff88801f6ef1a8 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_write_lock_killable include/linux/mmap_lock.h:26 [inline]
 #1: ffff88801f6ef1a8 (&mm->mmap_lock#2){++++}-{3:3}, at: dup_mmap kernel/fork.c:479 [inline]
 #1: ffff88801f6ef1a8 (&mm->mmap_lock#2){++++}-{3:3}, at: dup_mm+0x11f/0x12f0 kernel/fork.c:1357
 #2: ffff88801e8babe8 (&mm->mmap_lock/1){+.+.}-{3:3}, at: mmap_write_lock_nested include/linux/mmap_lock.h:21 [inline]
 #2: ffff88801e8babe8 (&mm->mmap_lock/1){+.+.}-{3:3}, at: dup_mmap kernel/fork.c:488 [inline]
 #2: ffff88801e8babe8 (&mm->mmap_lock/1){+.+.}-{3:3}, at: dup_mm+0x160/0x12f0 kernel/fork.c:1357
 #3: ffff888010a65198 (ptlock_ptr(page)#2){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline]
 #3: ffff888010a65198 (ptlock_ptr(page)#2){+.+.}-{2:2}, at: copy_pte_range mm/memory.c:974 [inline]
 #3: ffff888010a65198 (ptlock_ptr(page)#2){+.+.}-{2:2}, at: copy_pmd_range mm/memory.c:1091 [inline]
 #3: ffff888010a65198 (ptlock_ptr(page)#2){+.+.}-{2:2}, at: copy_pud_range mm/memory.c:1128 [inline]
 #3: ffff888010a65198 (ptlock_ptr(page)#2){+.+.}-{2:2}, at: copy_p4d_range mm/memory.c:1152 [inline]
 #3: ffff888010a65198 (ptlock_ptr(page)#2){+.+.}-{2:2}, at: copy_page_range+0xd08/0x35d0 mm/memory.c:1216
 #4: ffff88801ceba6d8 (ptlock_ptr(page)#2/1){+.+.}-{2:2}, at: copy_pte_range mm/memory.c:981 [inline]
 #4: ffff88801ceba6d8 (ptlock_ptr(page)#2/1){+.+.}-{2:2}, at: copy_pmd_range mm/memory.c:1091 [inline]
 #4: ffff88801ceba6d8 (ptlock_ptr(page)#2/1){+.+.}-{2:2}, at: copy_pud_range mm/memory.c:1128 [inline]
 #4: ffff88801ceba6d8 (ptlock_ptr(page)#2/1){+.+.}-{2:2}, at: copy_p4d_range mm/memory.c:1152 [inline]
 #4: ffff88801ceba6d8 (ptlock_ptr(page)#2/1){+.+.}-{2:2}, at: copy_page_range+0xe9c/0x35d0 mm/memory.c:1216
 #5: ffffffff8a554c80 (rcu_callback){....}-{0:0}, at: rcu_do_batch kernel/rcu/tree.c:2474 [inline]
 #5: ffffffff8a554c80 (rcu_callback){....}-{0:0}, at: rcu_core+0x5d8/0x1240 kernel/rcu/tree.c:2718

stack backtrace:
CPU: 1 PID: 6903 Comm: syz-executor.4 Not tainted 5.9.0-rc8-next-20201008-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x198/0x1fb lib/dump_stack.c:118
 print_usage_bug kernel/locking/lockdep.c:3715 [inline]
 valid_state kernel/locking/lockdep.c:3726 [inline]
 mark_lock_irq kernel/locking/lockdep.c:3929 [inline]
 mark_lock.cold+0x32/0x74 kernel/locking/lockdep.c:4396
 mark_usage kernel/locking/lockdep.c:4281 [inline]
 __lock_acquire+0x118a/0x56d0 kernel/locking/lockdep.c:4771
 lock_acquire+0x1f2/0xaa0 kernel/locking/lockdep.c:5419
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x94/0xd0 kernel/locking/spinlock.c:159
 xa_destroy+0xaa/0x350 lib/xarray.c:2205
 __io_uring_free+0x60/0xc0 fs/io_uring.c:7693
 io_uring_free include/linux/io_uring.h:40 [inline]
 __put_task_struct+0xff/0x3f0 kernel/fork.c:732
 put_task_struct include/linux/sched/task.h:111 [inline]
 delayed_put_task_struct+0x1f6/0x340 kernel/exit.c:172
 rcu_do_batch kernel/rcu/tree.c:2484 [inline]
 rcu_core+0x645/0x1240 kernel/rcu/tree.c:2718
 __do_softirq+0x203/0xab6 kernel/softirq.c:298
 asm_call_irq_on_stack+0xf/0x20
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
 do_softirq_own_stack+0x9b/0xd0 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:393 [inline]
 __irq_exit_rcu kernel/softirq.c:423 [inline]
 irq_exit_rcu+0x235/0x280 kernel/softirq.c:435
 sysvec_apic_timer_interrupt+0x51/0xf0 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631
RIP: 0010:vm_normal_page+0x4a/0x380 mm/memory.c:596
Code: e5 48 c7 04 24 b3 8a b5 41 48 c7 44 24 08 2e c2 da 89 48 c1 ed 03 48 c7 44 24 10 50 ec a6 81 48 8d 44 1d 00 c7 00 f1 f1 f1 f1 <c7> 40 04 00 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 44 24 58 31
RSP: 0018:ffffc90005537798 EFLAGS: 00000a06
RAX: fffff52000aa6ef3 RBX: dffffc0000000000 RCX: ffffffff81a826a2
RDX: 800000004b9ab007 RSI: 00007f29a97f5000 RDI: ffff88801716a568
RBP: 1ffff92000aa6ef3 R08: 0000000000000000 R09: ffffea00012e6a87
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88801716a568
R13: 00007f29a97f5000 R14: 0000000000000007 R15: 0000000000000010
 copy_present_pte mm/memory.c:893 [inline]
 copy_pte_range mm/memory.c:1011 [inline]
 copy_pmd_range mm/memory.c:1091 [inline]
 copy_pud_range mm/memory.c:1128 [inline]
 copy_p4d_range mm/memory.c:1152 [inline]
 copy_page_range+0xf81/0x35d0 mm/memory.c:1216
 dup_mmap kernel/fork.c:593 [inline]
 dup_mm+0x989/0x12f0 kernel/fork.c:1357
 copy_mm kernel/fork.c:1413 [inline]
 copy_process+0x2adf/0x6e90 kernel/fork.c:2095
 kernel_clone+0xe5/0xae0 kernel/fork.c:2456
 __do_sys_clone+0xc8/0x110 kernel/fork.c:2573
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45c3fa
Code: f7 d8 64 89 04 25 d4 02 00 00 64 4c 8b 0c 25 10 00 00 00 31 d2 4d 8d 91 d0 02 00 00 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 f5 00 00 00 85 c0 41 89 c5 0f 85 fc 00 00
RSP: 002b:00007ffda96155e0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007ffda96155e0 RCX: 000000000045c3fa
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007ffda9615620 R08: 0000000000000001 R09: 00000000031c1940
R10: 00000000031c1c10 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 00007ffda9615670