iommufd_mock iommufd_mock1: Adding to iommu group 0 ================================================================================ UBSAN: shift-out-of-bounds in drivers/iommu/iommufd/iova_bitmap.c:130:27 shift exponent 63 is too large for 32-bit type 'int' CPU: 0 PID: 3479 Comm: syz.3.16 Not tainted 6.6.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x83/0xd0 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_shift_out_of_bounds+0x247/0x270 lib/ubsan.c:387 iova_bitmap_offset_to_index drivers/iommu/iommufd/iova_bitmap.c:130 [inline] iova_bitmap_alloc+0x193/0x1b0 drivers/iommu/iommufd/iova_bitmap.c:252 iommu_read_and_clear_dirty drivers/iommu/iommufd/io_pagetable.c:467 [inline] iopt_read_and_clear_dirty_data+0xe4/0x1d0 drivers/iommu/iommufd/io_pagetable.c:527 iommufd_hwpt_get_dirty_bitmap+0x5b/0xa0 drivers/iommu/iommufd/hw_pagetable.c:240 iommufd_fops_ioctl+0x1a1/0x1b0 drivers/iommu/iommufd/main.c:404 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0x6e/0xc0 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x46/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x6f/0xd9 RIP: 0033:0x7fd561985d29 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:00007fd5626cf038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd561b75fa0 RCX: 00007fd561985d29 RDX: 0000000020000300 RSI: 0000000000003b8c RDI: 0000000000000003 RBP: 00007fd561a01b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd561b75fa0 R15: 00007ffe7f635318 ================================================================================