------------[ cut here ]------------ WARNING: CPU: 0 PID: 30011 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: 0 PID: 30011 Comm: syz-executor.1 Not tainted 6.10.0-rc1-next-20240531-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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 c8 95 14 fc 48 89 5d 00 b0 01 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 3e a7 ae 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:ffffc9000321f6c8 EFLAGS: 00010293 RAX: ffffffff85e7d4b2 RBX: 0000015a6bb29cc0 RCX: ffff88801ffd9e00 RDX: 0000000000000000 RSI: 0000015a6bb29cc0 RDI: 0000015a6bb29cc0 RBP: ffffc9000321f860 R08: ffffffff85e7d41f R09: 0000000000000000 R10: ffffc90003e82000 R11: ffffffff85e7d330 R12: 0000015a6bb29cc0 R13: ffff88801c7c9150 R14: 1ffff92000643f0c R15: ffff888020238000 FS: 00007f7348bb16c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c0013a5000 CR3: 00000000547aa000 CR4: 00000000003506f0 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:880 [inline] drm_crtc_next_vblank_start+0x22d/0x480 drivers/gpu/drm/drm_vblank.c:1014 set_fence_deadline drivers/gpu/drm/drm_atomic_helper.c:1558 [inline] drm_atomic_helper_wait_for_fences+0x277/0x8d0 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+0x2ac/0x310 drivers/gpu/drm/drm_atomic.c:1514 drm_client_modeset_commit_atomic+0x676/0x7e0 drivers/gpu/drm/drm_client_modeset.c:1063 drm_client_modeset_commit_locked+0xe0/0x520 drivers/gpu/drm/drm_client_modeset.c:1166 drm_client_modeset_commit+0x4a/0x70 drivers/gpu/drm/drm_client_modeset.c:1192 __drm_fb_helper_restore_fbdev_mode_unlocked drivers/gpu/drm/drm_fb_helper.c:251 [inline] drm_fb_helper_restore_fbdev_mode_unlocked drivers/gpu/drm/drm_fb_helper.c:278 [inline] drm_fb_helper_lastclose+0xbb/0x180 drivers/gpu/drm/drm_fb_helper.c:2005 drm_fbdev_generic_client_restore+0x34/0x40 drivers/gpu/drm/drm_fbdev_generic.c:257 drm_client_dev_restore+0x132/0x270 drivers/gpu/drm/drm_client.c:260 drm_lastclose drivers/gpu/drm/drm_file.c:406 [inline] drm_release+0x47c/0x560 drivers/gpu/drm/drm_file.c:437 __fput+0x406/0x8b0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:180 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+0x168/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:0x7f7347e7cee9 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:00007f7348bb10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f7347fb3fa0 RCX: 00007f7347e7cee9 RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000003 RBP: 00007f7347ec947f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f7347fb3fa0 R15: 00007ffc641e31b8