Oops: divide error: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 2 UID: 0 PID: 6522 Comm: syz.0.15 Not tainted 6.12.0-syzkaller-09073-g9f16d5e6f220 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:drm_mode_vrefresh+0x199/0x200 drivers/gpu/drm/drm_modes.c:1305 Code: 89 de e8 ea 60 61 fc 66 83 fb 01 76 08 e8 cf 5e 61 fc 0f af eb e8 c7 5e 61 fc 4d 69 e4 e8 03 00 00 89 e8 31 d2 d1 e8 4c 01 e0 <48> f7 f5 48 89 c3 e8 ac 5e 61 fc 89 d8 5b 5d 41 5c 41 5d 41 5e c3 RSP: 0018:ffffc900046df7c0 EFLAGS: 00010202 RAX: 0000000000001f40 RBX: 0000000000000300 RCX: ffffffff852d5bf6 RDX: 0000000000000000 RSI: ffffffff852d5c09 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000001 R10: 0000000000000300 R11: 0000000000000000 R12: 0000000000001f40 R13: 0000000000000020 R14: 0000000000000010 R15: ffff8880251d6090 FS: 00007f8ac338e6c0(0000) GS:ffff88806a800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2da5ffff CR3: 0000000027c74000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_mode_convert_to_umode+0x45d/0x810 drivers/gpu/drm/drm_modes.c:2594 drm_atomic_set_mode_for_crtc+0x153/0x550 drivers/gpu/drm/drm_atomic_uapi.c:82 __drm_atomic_helper_set_config+0x1ec/0xe90 drivers/gpu/drm/drm_atomic.c:1683 drm_atomic_helper_set_config+0x98/0x1a0 drivers/gpu/drm/drm_atomic_helper.c:3265 drm_mode_setcrtc+0xdfc/0x1db0 drivers/gpu/drm/drm_crtc.c:869 drm_ioctl_kernel+0x1e6/0x3d0 drivers/gpu/drm/drm_ioctl.c:796 drm_ioctl+0x5d6/0xc00 drivers/gpu/drm/drm_ioctl.c:893 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl fs/ioctl.c:892 [inline] __x64_sys_ioctl+0x190/0x200 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8ac257e719 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:00007f8ac338e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8ac2735f80 RCX: 00007f8ac257e719 RDX: 0000000020000400 RSI: 00000000c06864a2 RDI: 0000000000000003 RBP: 00007f8ac25f139e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8ac2735f80 R15: 00007ffeeaa7b8b8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:drm_mode_vrefresh+0x199/0x200 drivers/gpu/drm/drm_modes.c:1305 Code: 89 de e8 ea 60 61 fc 66 83 fb 01 76 08 e8 cf 5e 61 fc 0f af eb e8 c7 5e 61 fc 4d 69 e4 e8 03 00 00 89 e8 31 d2 d1 e8 4c 01 e0 <48> f7 f5 48 89 c3 e8 ac 5e 61 fc 89 d8 5b 5d 41 5c 41 5d 41 5e c3 RSP: 0018:ffffc900046df7c0 EFLAGS: 00010202 RAX: 0000000000001f40 RBX: 0000000000000300 RCX: ffffffff852d5bf6 RDX: 0000000000000000 RSI: ffffffff852d5c09 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000001 R10: 0000000000000300 R11: 0000000000000000 R12: 0000000000001f40 R13: 0000000000000020 R14: 0000000000000010 R15: ffff8880251d6090 FS: 00007f8ac338e6c0(0000) GS:ffff88806a900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8ac2737a8c CR3: 0000000027c74000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 89 de mov %ebx,%esi 2: e8 ea 60 61 fc call 0xfc6160f1 7: 66 83 fb 01 cmp $0x1,%bx b: 76 08 jbe 0x15 d: e8 cf 5e 61 fc call 0xfc615ee1 12: 0f af eb imul %ebx,%ebp 15: e8 c7 5e 61 fc call 0xfc615ee1 1a: 4d 69 e4 e8 03 00 00 imul $0x3e8,%r12,%r12 21: 89 e8 mov %ebp,%eax 23: 31 d2 xor %edx,%edx 25: d1 e8 shr %eax 27: 4c 01 e0 add %r12,%rax * 2a: 48 f7 f5 div %rbp <-- trapping instruction 2d: 48 89 c3 mov %rax,%rbx 30: e8 ac 5e 61 fc call 0xfc615ee1 35: 89 d8 mov %ebx,%eax 37: 5b pop %rbx 38: 5d pop %rbp 39: 41 5c pop %r12 3b: 41 5d pop %r13 3d: 41 5e pop %r14 3f: c3 ret