------------[ cut here ]------------ UBSAN: shift-out-of-bounds in drivers/iommu/iommufd/iova_bitmap.c:133:27 shift exponent 52 is too large for 32-bit type 'int' CPU: 0 UID: 0 PID: 13570 Comm: syz.3.1558 Not tainted 6.13.0-rc7-syzkaller-00039-gc3812b15000c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:231 [inline] __ubsan_handle_shift_out_of_bounds+0x3c8/0x420 lib/ubsan.c:468 iova_bitmap_offset_to_index drivers/iommu/iommufd/iova_bitmap.c:133 [inline] iova_bitmap_alloc+0x2bd/0x2d0 drivers/iommu/iommufd/iova_bitmap.c:259 iommu_read_and_clear_dirty drivers/iommu/iommufd/io_pagetable.c:534 [inline] iopt_read_and_clear_dirty_data+0x35a/0x6c0 drivers/iommu/iommufd/io_pagetable.c:594 iommufd_hwpt_get_dirty_bitmap+0x17c/0x2e0 drivers/iommu/iommufd/hw_pagetable.c:470 iommufd_fops_ioctl+0x4d6/0x5a0 drivers/iommu/iommufd/main.c:409 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892 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:0x7f8edbb85d29 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:00007f8edc8f1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8edbd76080 RCX: 00007f8edbb85d29 RDX: 0000000020000300 RSI: 0000000000003b8c RDI: 0000000000000003 RBP: 00007f8edbc01b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8edbd76080 R15: 00007f8edbe9fa28 ---[ end trace ]---