------------[ cut here ]------------ WARNING: CPU: 1 PID: 5916 at drivers/iommu/iommufd/io_pagetable.c:268 iopt_alloc_area_pages drivers/iommu/iommufd/io_pagetable.c:268 [inline] WARNING: CPU: 1 PID: 5916 at drivers/iommu/iommufd/io_pagetable.c:268 iopt_map_pages+0xf95/0x1050 drivers/iommu/iommufd/io_pagetable.c:352 Modules linked in: CPU: 1 PID: 5916 Comm: syz.0.15 Not tainted 6.10.0-syzkaller-g0c3836482481 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:iopt_alloc_area_pages drivers/iommu/iommufd/io_pagetable.c:268 [inline] RIP: 0010:iopt_map_pages+0xf95/0x1050 drivers/iommu/iommufd/io_pagetable.c:352 Code: fc e9 a4 f3 ff ff e8 6a 2d 4c fc 41 be e4 ff ff ff e9 8a f3 ff ff e8 5a 2d 4c fc 90 0f 0b 90 e9 37 f5 ff ff e8 4c 2d 4c fc 90 <0f> 0b 90 e9 68 f3 ff ff 48 c7 c1 ec c7 ad 8f 80 e1 07 80 c1 03 38 RSP: 0018:ffffc9000309f9e0 EFLAGS: 00010293 RAX: ffffffff8549fc54 RBX: 00000000ffffffef RCX: ffff88802b8d8000 RDX: 0000000000000000 RSI: 00000000ffffffef RDI: 0000000000000000 RBP: ffffc9000309fc50 R08: ffffffff8549f7e0 R09: ffffffff8549f5f2 R10: 0000000000000002 R11: ffff88802b8d8000 R12: ffff88806e165010 R13: 0000000000000000 R14: 1ffff92000613f68 R15: ffffc9000309fd00 FS: 00007fcfeb4a96c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcfeb4a8fa8 CR3: 00000000555ec000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: iommufd_ioas_copy+0x610/0x7b0 drivers/iommu/iommufd/ioas.c:274 iommufd_fops_ioctl+0x4d9/0x5a0 drivers/iommu/iommufd/main.c:421 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcfea775b99 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:00007fcfeb4a9048 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fcfea903fa0 RCX: 00007fcfea775b99 RDX: 0000000020000140 RSI: 0000000000003b83 RDI: 0000000000000003 RBP: 00007fcfea7f677e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fcfea903fa0 R15: 00007ffcec8c0fb8