------------[ cut here ]------------ WARNING: CPU: 1 PID: 22358 at drivers/gpu/drm/vkms/vkms_crtc.c:97 vkms_get_vblank_timestamp+0x137/0x160 drivers/gpu/drm/vkms/vkms_crtc.c:97 Modules linked in: CPU: 1 UID: 0 PID: 22358 Comm: syz.9.3445 Not tainted 6.15.0-syzkaller-07774-g90b83efa6701 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:vkms_get_vblank_timestamp+0x137/0x160 drivers/gpu/drm/vkms/vkms_crtc.c:97 Code: 42 80 3c 28 00 74 08 48 89 df e8 b4 72 35 fc 4c 89 33 b0 01 5b 41 5c 41 5d 41 5e 41 5f 5d e9 2b 9a 22 fb cc e8 0a 54 d2 fb 90 <0f> 0b 90 eb e3 44 89 e1 80 e1 07 38 c1 0f 8c ff fe ff ff 4c 89 e7 RSP: 0018:ffffc900054376c8 EFLAGS: 00010287 RAX: ffffffff85eda6e6 RBX: ffffc90005437840 RCX: 0000000000080000 RDX: ffffc9000f4d1000 RSI: 00000000000043d6 RDI: 00000000000043d7 RBP: 1ffff92000a86f08 R08: ffff88801cb6e117 R09: 1ffff1100396dc22 R10: dffffc0000000000 R11: ffffffff85eda5b0 R12: 000001972734f6dd R13: dffffc0000000000 R14: ffff888024720028 R15: 000001972734f6dd FS: 00007f31f31266c0(0000) GS:ffff888125d66000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561b2120f008 CR3: 000000004ed0d000 CR4: 0000000000350ef0 Call Trace: drm_crtc_get_last_vbltimestamp drivers/gpu/drm/drm_vblank.c:878 [inline] drm_crtc_next_vblank_start+0x226/0x470 drivers/gpu/drm/drm_vblank.c:1012 set_fence_deadline drivers/gpu/drm/drm_atomic_helper.c:1596 [inline] drm_atomic_helper_wait_for_fences+0x265/0x8c0 drivers/gpu/drm/drm_atomic_helper.c:1643 drm_atomic_helper_commit+0x5c7/0xb10 drivers/gpu/drm/drm_atomic_helper.c:2072 drm_atomic_commit+0x262/0x2c0 drivers/gpu/drm/drm_atomic.c:1577 drm_client_modeset_commit_atomic+0x620/0x760 drivers/gpu/drm/drm_client_modeset.c:1101 drm_client_modeset_commit_locked+0xcb/0x4d0 drivers/gpu/drm/drm_client_modeset.c:1204 drm_client_modeset_commit+0x4a/0x70 drivers/gpu/drm/drm_client_modeset.c:1230 __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:267 [inline] drm_fb_helper_lastclose+0xa4/0x1c0 drivers/gpu/drm/drm_fb_helper.c:1985 drm_fbdev_client_restore+0x34/0x40 drivers/gpu/drm/clients/drm_fbdev_client.c:31 drm_client_dev_restore+0x13c/0x270 drivers/gpu/drm/drm_client_event.c:116 drm_lastclose drivers/gpu/drm/drm_file.c:396 [inline] drm_release+0x318/0x3f0 drivers/gpu/drm/drm_file.c:429 __fput+0x44c/0xa70 fs/file_table.c:465 task_work_run+0x1d4/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xec/0x110 kernel/entry/common.c:114 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f31f238e969 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:00007f31f3126038 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f31f25b5fa0 RCX: 00007f31f238e969 RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000003 RBP: 00007f31f2410ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f31f25b5fa0 R15: 00007ffea8259bb8