Oops: divide error: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 UID: 0 PID: 5606 Comm: syz-executor.0 Not tainted 6.12.0-rc3-next-20241018-syzkaller-gf2493655d2d3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:drm_mode_vrefresh drivers/gpu/drm/drm_modes.c:1305 [inline] RIP: 0010:drm_mode_convert_to_umode+0x36a/0xc30 drivers/gpu/drm/drm_modes.c:2594 Code: 0f b7 03 66 83 f8 02 b9 01 00 00 00 0f 43 c8 0f b7 c1 44 0f af f8 44 89 f0 48 69 c8 e8 03 00 00 44 89 f8 d1 e8 48 01 c8 31 d2 <49> f7 f7 48 89 c3 eb 1a e8 c9 d8 35 fc eb 05 e8 c2 d8 35 fc 48 8b RSP: 0018:ffffc90004487620 EFLAGS: 00010246 RAX: 0000000000001f40 RBX: ffff88803150d916 RCX: 0000000000001f40 RDX: 0000000000000000 RSI: ffffc900044876e0 RDI: dffffc0000000000 RBP: 0000000000000200 R08: ffffffff855f223a R09: ffff88803150d90a R10: dffffc0000000000 R11: ffffed100491bac3 R12: 1ffff110062a1b22 R13: ffff88803150d900 R14: 0000000000000008 R15: 0000000000000000 FS: 00007f62399396c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007eff2f71b440 CR3: 000000002fba4000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_atomic_set_mode_for_crtc+0x14a/0x4a0 drivers/gpu/drm/drm_atomic_uapi.c:82 __drm_atomic_helper_set_config+0x255/0xf80 drivers/gpu/drm/drm_atomic.c:1681 drm_atomic_helper_set_config+0x8b/0x160 drivers/gpu/drm/drm_atomic_helper.c:3265 drm_mode_setcrtc+0xc88/0x1e30 drivers/gpu/drm/drm_crtc.c:869 drm_ioctl_kernel+0x337/0x440 drivers/gpu/drm/drm_ioctl.c:796 drm_ioctl+0x60e/0xad0 drivers/gpu/drm/drm_ioctl.c:893 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:893 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:0x7f6238c7dda9 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:00007f62399390c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f6238dabf80 RCX: 00007f6238c7dda9 RDX: 0000000020000400 RSI: 00000000c06864a2 RDI: 0000000000000003 RBP: 00007f6238cca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f6238dabf80 R15: 00007ffff68bfa58 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:drm_mode_vrefresh drivers/gpu/drm/drm_modes.c:1305 [inline] RIP: 0010:drm_mode_convert_to_umode+0x36a/0xc30 drivers/gpu/drm/drm_modes.c:2594 Code: 0f b7 03 66 83 f8 02 b9 01 00 00 00 0f 43 c8 0f b7 c1 44 0f af f8 44 89 f0 48 69 c8 e8 03 00 00 44 89 f8 d1 e8 48 01 c8 31 d2 <49> f7 f7 48 89 c3 eb 1a e8 c9 d8 35 fc eb 05 e8 c2 d8 35 fc 48 8b RSP: 0018:ffffc90004487620 EFLAGS: 00010246 RAX: 0000000000001f40 RBX: ffff88803150d916 RCX: 0000000000001f40 RDX: 0000000000000000 RSI: ffffc900044876e0 RDI: dffffc0000000000 RBP: 0000000000000200 R08: ffffffff855f223a R09: ffff88803150d90a R10: dffffc0000000000 R11: ffffed100491bac3 R12: 1ffff110062a1b22 R13: ffff88803150d900 R14: 0000000000000008 R15: 0000000000000000 FS: 00007f62399396c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005581e5fee950 CR3: 000000002fba4000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 0f b7 03 movzwl (%rbx),%eax 3: 66 83 f8 02 cmp $0x2,%ax 7: b9 01 00 00 00 mov $0x1,%ecx c: 0f 43 c8 cmovae %eax,%ecx f: 0f b7 c1 movzwl %cx,%eax 12: 44 0f af f8 imul %eax,%r15d 16: 44 89 f0 mov %r14d,%eax 19: 48 69 c8 e8 03 00 00 imul $0x3e8,%rax,%rcx 20: 44 89 f8 mov %r15d,%eax 23: d1 e8 shr %eax 25: 48 01 c8 add %rcx,%rax 28: 31 d2 xor %edx,%edx * 2a: 49 f7 f7 div %r15 <-- trapping instruction 2d: 48 89 c3 mov %rax,%rbx 30: eb 1a jmp 0x4c 32: e8 c9 d8 35 fc call 0xfc35d900 37: eb 05 jmp 0x3e 39: e8 c2 d8 35 fc call 0xfc35d900 3e: 48 rex.W 3f: 8b .byte 0x8b