------------[ cut here ]------------ WARNING: CPU: 0 PID: 11096 at drivers/gpu/drm/vkms/vkms_crtc.c:98 vkms_get_vblank_timestamp+0x183/0x1b0 drivers/gpu/drm/vkms/vkms_crtc.c:98 Modules linked in: CPU: 0 UID: 0 PID: 11096 Comm: syz.7.1298 Not tainted 6.13.0-rc6-syzkaller-00213-ge0daef7de1ac #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:98 Code: 42 80 3c 30 00 74 08 48 89 ef e8 d8 3b 09 fc 48 89 5d 00 b0 01 5b 41 5c 41 5d 41 5e 41 5f 5d e9 1e 94 f3 05 e8 1e d7 a2 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:ffffc900057476a8 EFLAGS: 00010293 RAX: ffffffff85fcacf2 RBX: 0000005f15a59362 RCX: ffff88802d370000 RDX: 0000000000000000 RSI: 0000005f15a59362 RDI: 0000005f15a59362 RBP: ffffc90005747840 R08: ffffffff85fcac5f R09: 1ffff1100531ce22 R10: dffffc0000000000 R11: ffffffff85fcab70 R12: 0000005f15a59362 R13: ffff888142362950 R14: 1ffff92000ae8f08 R15: ffff888024ba0000 FS: 0000555581b6d500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000066cfa000 CR4: 0000000000350ef0 Call Trace: drm_crtc_get_last_vbltimestamp drivers/gpu/drm/drm_vblank.c:878 [inline] drm_crtc_next_vblank_start+0x22b/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 drm_atomic_helper_commit+0x53a/0x9f0 drivers/gpu/drm/drm_atomic_helper.c:2034 drm_atomic_commit+0x296/0x2f0 drivers/gpu/drm/drm_atomic.c:1518 drm_client_modeset_commit_atomic+0x670/0x7d0 drivers/gpu/drm/drm_client_modeset.c:1070 drm_client_modeset_commit_locked+0xe0/0x520 drivers/gpu/drm/drm_client_modeset.c:1173 drm_client_modeset_commit+0x4a/0x70 drivers/gpu/drm/drm_client_modeset.c:1199 __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:1975 drm_fbdev_client_restore+0x34/0x40 drivers/gpu/drm/drm_fbdev_client.c:30 drm_client_dev_restore+0x134/0x270 drivers/gpu/drm/drm_client_event.c:104 drm_lastclose drivers/gpu/drm/drm_file.c:396 [inline] drm_release+0x335/0x410 drivers/gpu/drm/drm_file.c:429 __fput+0x23e/0xa50 fs/file_table.c:450 task_work_run+0x251/0x310 kernel/task_work.c:239 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:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x13f/0x340 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:0x7fb2ca185d29 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:00007ffc901678e8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007fb2ca377ba0 RCX: 00007fb2ca185d29 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007fb2ca377ba0 R08: 0000000000000d10 R09: 00007ffc90167bdf R10: 00007fb2ca377ac0 R11: 0000000000000246 R12: 0000000000063a1f R13: 00007fb2ca376160 R14: 0000000000000032 R15: ffffffffffffffff