divide error: 0000 [#1] PREEMPT SMP CPU: 1 PID: 2547 Comm: syz-executor.0 Not tainted 6.6.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:iommufd_test_dirty drivers/iommu/iommufd/selftest.c:1093 [inline] RIP: 0010:iommufd_test+0x7a/0x1200 drivers/iommu/iommufd/selftest.c:1198 Code: b8 08 00 00 83 f8 0d 0f 85 cc 04 00 00 49 8b 6a 18 31 d2 4c 89 14 24 49 8b 5a 28 49 8b 4a 30 4d 8b 72 20 48 89 e8 41 8b 72 08 <48> f7 f3 48 85 d2 48 89 4c 24 18 0f 85 93 0c 00 00 31 d2 4c 89 f0 RSP: 0018:ffffc90002167de8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90002167e78 RBP: 0000000000000000 R08: ffff88810dad13c0 R09: ffffc90002167e78 R10: ffffc90002167e98 R11: 0000000000000001 R12: ffffc90002167e98 R13: 0000000000000048 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ff8413726c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556072da8 CR3: 000000010a3c8000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: iommufd_fops_ioctl+0x10f/0x1a0 drivers/iommu/iommufd/main.c:404 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x8b/0xc0 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ff84067cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff8413720c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff84079bf80 RCX: 00007ff84067cae9 RDX: 0000000020000140 RSI: 0000000000003ba0 RDI: 0000000000000003 RBP: 00007ff8406c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007ff84079bf80 R15: 00007fffdc213eb8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:iommufd_test_dirty drivers/iommu/iommufd/selftest.c:1093 [inline] RIP: 0010:iommufd_test+0x7a/0x1200 drivers/iommu/iommufd/selftest.c:1198 Code: b8 08 00 00 83 f8 0d 0f 85 cc 04 00 00 49 8b 6a 18 31 d2 4c 89 14 24 49 8b 5a 28 49 8b 4a 30 4d 8b 72 20 48 89 e8 41 8b 72 08 <48> f7 f3 48 85 d2 48 89 4c 24 18 0f 85 93 0c 00 00 31 d2 4c 89 f0 RSP: 0018:ffffc90002167de8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90002167e78 RBP: 0000000000000000 R08: ffff88810dad13c0 R09: ffffc90002167e78 R10: ffffc90002167e98 R11: 0000000000000001 R12: ffffc90002167e98 R13: 0000000000000048 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ff8413726c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556072da8 CR3: 000000010a3c8000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: b8 08 00 00 83 mov $0x83000008,%eax 5: f8 clc 6: 0d 0f 85 cc 04 or $0x4cc850f,%eax b: 00 00 add %al,(%rax) d: 49 8b 6a 18 mov 0x18(%r10),%rbp 11: 31 d2 xor %edx,%edx 13: 4c 89 14 24 mov %r10,(%rsp) 17: 49 8b 5a 28 mov 0x28(%r10),%rbx 1b: 49 8b 4a 30 mov 0x30(%r10),%rcx 1f: 4d 8b 72 20 mov 0x20(%r10),%r14 23: 48 89 e8 mov %rbp,%rax 26: 41 8b 72 08 mov 0x8(%r10),%esi * 2a: 48 f7 f3 div %rbx <-- trapping instruction 2d: 48 85 d2 test %rdx,%rdx 30: 48 89 4c 24 18 mov %rcx,0x18(%rsp) 35: 0f 85 93 0c 00 00 jne 0xcce 3b: 31 d2 xor %edx,%edx 3d: 4c 89 f0 mov %r14,%rax