------------[ cut here ]------------ WARNING: CPU: 0 PID: 4997 at drivers/iommu/iommufd/selftest.c:762 iommufd_test_check_pages drivers/iommu/iommufd/selftest.c:762 [inline] WARNING: CPU: 0 PID: 4997 at drivers/iommu/iommufd/selftest.c:762 iommufd_test_access_pages drivers/iommu/iommufd/selftest.c:831 [inline] WARNING: CPU: 0 PID: 4997 at drivers/iommu/iommufd/selftest.c:762 iommufd_test+0x1bed/0x2c20 drivers/iommu/iommufd/selftest.c:964 Modules linked in: CPU: 0 PID: 4997 Comm: syz-executor389 Not tainted 6.4.0-rc6-syzkaller-00037-gb6dad5178cea #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:iommufd_test_check_pages drivers/iommu/iommufd/selftest.c:762 [inline] RIP: 0010:iommufd_test_access_pages drivers/iommu/iommufd/selftest.c:831 [inline] RIP: 0010:iommufd_test+0x1bed/0x2c20 drivers/iommu/iommufd/selftest.c:964 Code: 48 85 db 0f 88 36 0a 00 00 e8 df bb ed fc 48 89 de bf 01 00 00 00 e8 12 b8 ed fc 48 83 fb 01 0f 84 51 ff ff ff e8 c3 bb ed fc <0f> 0b 41 bf f2 ff ff ff e8 b6 bb ed fc e8 b1 bb ed fc 48 8b 54 24 RSP: 0018:ffffc90003a6fcd8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880183c1dc0 RSI: ffffffff84968b1d RDI: 0000000000000007 RBP: 0000000000000001 R08: 0000000000000007 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000001 R12: ffffffffffffff7b R13: ffff888015661410 R14: 0000000000000001 R15: ffffc90003a6fd68 FS: 00005555569b2300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000040 CR3: 0000000072c6f000 CR4: 0000000000350ef0 Call Trace: iommufd_fops_ioctl+0x317/0x4b0 drivers/iommu/iommufd/main.c:337 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7febccdb8d79 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffdab6d9918 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007febccdb8d79 RDX: 0000000020000280 RSI: 0000000000003ba0 RDI: 0000000000000004 RBP: 00007febccd7cf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007febccd7cfb0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000