------------[ cut here ]------------ WARNING: drivers/iommu/iommufd/io_pagetable.c:283 at iopt_alloc_area_pages drivers/iommu/iommufd/io_pagetable.c:283 [inline], CPU#0: syz.0.16/6748 WARNING: drivers/iommu/iommufd/io_pagetable.c:283 at iopt_map_pages+0xce7/0xda0 drivers/iommu/iommufd/io_pagetable.c:367, CPU#0: syz.0.16/6748 Modules linked in: CPU: 0 UID: 0 PID: 6748 Comm: syz.0.16 Not tainted 6.16.0-rc4-next-20250704-syzkaller-g26ffb3d6f02c #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:iopt_alloc_area_pages drivers/iommu/iommufd/io_pagetable.c:283 [inline] RIP: 0010:iopt_map_pages+0xce7/0xda0 drivers/iommu/iommufd/io_pagetable.c:367 Code: 89 d8 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d e9 7e 89 23 06 cc e8 58 54 61 fc 90 0f 0b 90 e9 ca f7 ff ff e8 4a 54 61 fc 90 <0f> 0b 90 e9 88 f5 ff ff e8 1c af 20 06 44 89 f1 80 e1 07 80 c1 03 RSP: 0018:ffffc900039cf860 EFLAGS: 00010293 RAX: ffffffff855eac36 RBX: 00000000ffffffea RCX: ffff88802a143c00 RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000000 RBP: ffffc900039cfa90 R08: ffff88802a143c00 R09: 0000000000000002 R10: 00000000ffffffff R11: 0000000000000000 R12: ffffc900039cfb50 R13: dffffc0000000000 R14: ffff888032931010 R15: ffffc900039cfcc0 FS: 00007fc1c0cde6c0(0000) GS:ffff8881257af000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2c95ffff CR3: 000000007d746000 CR4: 00000000003526f0 Call Trace: iopt_map_common+0x2bb/0x4f0 drivers/iommu/iommufd/io_pagetable.c:411 iopt_map_user_pages+0xbc/0xd0 drivers/iommu/iommufd/io_pagetable.c:452 iommufd_ioas_map+0x392/0x4c0 drivers/iommu/iommufd/ioas.c:276 iommufd_fops_ioctl+0x45b/0x580 drivers/iommu/iommufd/main.c:468 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:584 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc1bfd8e929 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:00007fc1c0cde038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc1bffb5fa0 RCX: 00007fc1bfd8e929 RDX: 0000200000000080 RSI: 0000000000003b85 RDI: 0000000000000003 RBP: 00007fc1bfe10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc1bffb5fa0 R15: 00007fff61e122c8