------------[ cut here ]------------ WARNING: CPU: 1 PID: 14022 at drivers/gpu/drm/vkms/vkms_crtc.c:100 vkms_get_vblank_timestamp+0x183/0x1b0 drivers/gpu/drm/vkms/vkms_crtc.c:100 Modules linked in: CPU: 1 UID: 0 PID: 14022 Comm: syz.4.1355 Not tainted 6.12.0-rc4-syzkaller-00161-gae90f6a6170d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:vkms_get_vblank_timestamp+0x183/0x1b0 drivers/gpu/drm/vkms/vkms_crtc.c:100 Code: 42 80 3c 30 00 74 08 48 89 ef e8 28 04 0a fc 48 89 5d 00 b0 01 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 7e 45 a0 fb 90 <0f> 0b 90 eb e4 89 d9 80 e1 07 38 c1 0f 8c cd fe ff ff 48 89 df e8 RSP: 0018:ffffc90003b87228 EFLAGS: 00010293 RAX: ffffffff85f49242 RBX: 000000754b5c417c RCX: ffff88802bab3c00 RDX: 0000000000000000 RSI: 000000754b5c417c RDI: 000000754b5c417c RBP: ffffc90003b873c0 R08: ffffffff85f491af R09: 1ffffffff285950a R10: dffffc0000000000 R11: ffffffff85f490c0 R12: 000000754b5c417c R13: ffff888024d80950 R14: 1ffff92000770e78 R15: ffff888024af4000 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564012729950 CR3: 000000004c8c0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_crtc_get_last_vbltimestamp drivers/gpu/drm/drm_vblank.c:878 [inline] drm_crtc_next_vblank_start+0x229/0x490 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+0x277/0x8e0 drivers/gpu/drm/drm_atomic_helper.c:1605 commit_tail+0x75/0x3c0 drivers/gpu/drm/drm_atomic_helper.c:1819 drm_atomic_helper_commit+0x953/0x9f0 drivers/gpu/drm/drm_atomic_helper.c:2073 drm_atomic_commit+0x296/0x2f0 drivers/gpu/drm/drm_atomic.c:1516 drm_client_modeset_commit_atomic+0x676/0x7e0 drivers/gpu/drm/drm_client_modeset.c:1068 drm_client_modeset_commit_locked+0xe0/0x520 drivers/gpu/drm/drm_client_modeset.c:1171 drm_client_modeset_commit+0x4a/0x70 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:264 [inline] drm_fb_helper_lastclose+0xbb/0x180 drivers/gpu/drm/drm_fb_helper.c:2003 drm_fbdev_shmem_client_restore+0x34/0x40 drivers/gpu/drm/drm_fbdev_shmem.c:229 drm_client_dev_restore+0x132/0x270 drivers/gpu/drm/drm_client.c:260 drm_lastclose drivers/gpu/drm/drm_file.c:391 [inline] drm_release+0x335/0x410 drivers/gpu/drm/drm_file.c:424 __fput+0x23f/0x880 fs/file_table.c:431 task_work_run+0x24f/0x310 kernel/task_work.c:239 exit_task_work include/linux/task_work.h:43 [inline] do_exit+0xa2f/0x28e0 kernel/exit.c:939 do_group_exit+0x207/0x2c0 kernel/exit.c:1088 get_signal+0x16a3/0x1740 kernel/signal.c:2917 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [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+0xc9/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe2e637e719 Code: Unable to access opcode bytes at 0x7fe2e637e6ef. RSP: 002b:00007fe2e718c0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007fe2e6535f88 RCX: 00007fe2e637e719 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fe2e6535f88 RBP: 00007fe2e6535f80 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe2e6535f8c R13: 0000000000000000 R14: 00007fe2e665f940 R15: 00007fe2e665fa28