Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 UID: 0 PID: 6253 Comm: syz.0.138 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:unpin_user_page_range_dirty_lock+0x63/0x4e0
Code: 45 31 ed 4c 89 74 24 18 4c 89 6c 24 10 49 c1 e5 06 4b 8d 1c 2e 48 83 c3 08 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 ff 3e 1c 00 4d 01 f5 4c 8b 23 4c 89
RSP: 0018:ffffc900047ef450 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: dffffc0000000000
RDX: 0000000000000002 RSI: 0000000000000001 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffea00043f0037 R09: 1ffffd400087e006
R10: dffffc0000000000 R11: fffff9400087e007 R12: 0000000000000002
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007fd5c94cd6c0(0000) GS:ffff8881a39fa000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c416adb CR3: 000000011e8fc000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 batch_unpin+0x3eb/0x560
 iopt_pages_unfill_xarray+0x813/0xaa0
 iopt_area_remove_access+0x2c4/0x3f0
 iommufd_access_unpin_pages+0x33b/0x4e0
 iommufd_test_access_unmap+0x28c/0x300
 iommufd_access_notify_unmap+0x192/0x320
 iopt_unmap_iova_range+0x471/0x580
 iopt_unmap_all+0x2b/0x50
 iommufd_ioas_unmap+0x229/0x4d0
 iommufd_fops_ioctl+0x45e/0x580
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd5c858ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd5c94cd038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fd5c87c5fa0 RCX: 00007fd5c858ebe9
RDX: 0000200000000080 RSI: 0000000000003b86 RDI: 0000000000000003
RBP: 00007fd5c8611e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd5c87c6038 R14: 00007fd5c87c5fa0 R15: 00007ffee16049d8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:unpin_user_page_range_dirty_lock+0x63/0x4e0
Code: 45 31 ed 4c 89 74 24 18 4c 89 6c 24 10 49 c1 e5 06 4b 8d 1c 2e 48 83 c3 08 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 ff 3e 1c 00 4d 01 f5 4c 8b 23 4c 89
RSP: 0018:ffffc900047ef450 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: dffffc0000000000
RDX: 0000000000000002 RSI: 0000000000000001 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffea00043f0037 R09: 1ffffd400087e006
R10: dffffc0000000000 R11: fffff9400087e007 R12: 0000000000000002
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007fd5c94cd6c0(0000) GS:ffff8881a39fa000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fadbfcf7d60 CR3: 000000011e8fc000 CR4: 00000000000006f0
