------------[ cut here ]------------ WARNING: CPU: 0 PID: 7775 at drivers/gpu/drm/vkms/vkms_crtc.c:100 vkms_get_vblank_timestamp+0x185/0x1e0 drivers/gpu/drm/vkms/vkms_crtc.c:100 Modules linked in: CPU: 0 UID: 0 PID: 7775 Comm: syz.1.717 Not tainted 6.12.0-rc1-syzkaller-00031-ge32cde8d2bd7 #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:vkms_get_vblank_timestamp+0x185/0x1e0 drivers/gpu/drm/vkms/vkms_crtc.c:100 Code: e8 fb e8 de 37 d6 fb 48 89 e9 48 ba 00 00 00 00 00 fc ff df 48 c1 e9 03 80 3c 11 00 75 50 48 89 45 00 eb c0 e8 0c 39 e8 fb 90 <0f> 0b 90 eb b5 e8 01 81 49 fc e9 dc fe ff ff 48 89 df e8 84 81 49 RSP: 0000:ffffc90006d5f800 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000004389205347 RCX: ffffffff85a475ec RDX: ffff888025708000 RSI: ffffffff85a47664 RDI: 0000000000000006 RBP: ffffc90006d5f968 R08: 0000000000000006 R09: 0000004389205347 R10: 0000004389205347 R11: 0000000000000000 R12: 0000004389205347 R13: ffff88802316c000 R14: 0000000000004e20 R15: ffffffff85a474e0 FS: 0000000000000000(0000) GS:ffff88802b400000(0063) knlGS:00000000576ed440 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000000c2e02ff CR3: 000000002587c000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_crtc_get_last_vbltimestamp+0x103/0x1b0 drivers/gpu/drm/drm_vblank.c:878 drm_crtc_next_vblank_start+0x182/0x300 drivers/gpu/drm/drm_vblank.c:1012 set_fence_deadline drivers/gpu/drm/drm_atomic_helper.c:1558 [inline] drm_atomic_helper_wait_for_fences+0x1fc/0x820 drivers/gpu/drm/drm_atomic_helper.c:1605 drm_atomic_helper_commit+0x1cf/0x380 drivers/gpu/drm/drm_atomic_helper.c:2034 drm_atomic_commit+0x229/0x300 drivers/gpu/drm/drm_atomic.c:1516 drm_client_modeset_commit_atomic+0x6b0/0x800 drivers/gpu/drm/drm_client_modeset.c:1068 drm_client_modeset_commit_locked+0x14d/0x580 drivers/gpu/drm/drm_client_modeset.c:1171 drm_client_modeset_commit+0x4f/0x80 drivers/gpu/drm/drm_client_modeset.c:1197 __drm_fb_helper_restore_fbdev_mode_unlocked drivers/gpu/drm/drm_fb_helper.c:237 [inline] __drm_fb_helper_restore_fbdev_mode_unlocked drivers/gpu/drm/drm_fb_helper.c:216 [inline] drm_fb_helper_restore_fbdev_mode_unlocked drivers/gpu/drm/drm_fb_helper.c:264 [inline] drm_fb_helper_lastclose+0xc7/0x160 drivers/gpu/drm/drm_fb_helper.c:2003 drm_fbdev_shmem_client_restore+0x2c/0x40 drivers/gpu/drm/drm_fbdev_shmem.c:229 drm_client_dev_restore+0x188/0x2a0 drivers/gpu/drm/drm_client.c:260 drm_lastclose drivers/gpu/drm/drm_file.c:391 [inline] drm_release+0x2c2/0x360 drivers/gpu/drm/drm_file.c:424 __fput+0x3f6/0xb60 fs/file_table.c:431 task_work_run+0x14e/0x250 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x27b/0x2a0 kernel/entry/common.c:218 __do_fast_syscall_32+0x80/0x120 arch/x86/entry/common.c:389 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf73ae579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000ffc93bfc EFLAGS: 00000202 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 000000000000001e RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 ret 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi