------------[ cut here ]------------ WARNING: CPU: 1 PID: 8383 at drivers/gpu/drm/vkms/vkms_crtc.c:100 vkms_get_vblank_timestamp+0x15c/0x17c drivers/gpu/drm/vkms/vkms_crtc.c:100 Modules linked in: CPU: 1 UID: 0 PID: 8383 Comm: syz.0.361 Not tainted 6.12.0-rc3-syzkaller-gd2b1b3bccef6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : vkms_get_vblank_timestamp+0x15c/0x17c drivers/gpu/drm/vkms/vkms_crtc.c:100 lr : vkms_get_vblank_timestamp+0x15c/0x17c drivers/gpu/drm/vkms/vkms_crtc.c:100 sp : ffff80009f8a7520 x29: ffff80009f8a7520 x28: ffff0000c66f5880 x27: 0000000000000000 x26: 1ffff00013f14eb0 x25: dfff800000000000 x24: 1ffff00013f14ed4 x23: ffff0000c9fb0000 x22: dfff800000000000 x21: 0000002a8d0d8ba0 x20: 0000002a8d0d8ba0 x19: ffff80009f8a76a0 x18: 1fffe000366cc076 x17: ffff80008f7ed000 x16: ffff80008b3c891c x15: 0000000000000002 x14: 1fffe0001b155b21 x13: 0000000000000000 x12: ffff80009f999000 x11: ffff60001b155b23 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000eb780000 x7 : 0000000000000000 x6 : ffff80009f999000 x5 : ffff0000d8aad918 x4 : ffff0000d8aad8d8 x3 : 0000000000000000 x2 : ffff80009f8a76a0 x1 : 0000002a8d0d8ba0 x0 : 0000002a8d0d8ba0 Call trace: vkms_get_vblank_timestamp+0x15c/0x17c drivers/gpu/drm/vkms/vkms_crtc.c:100 drm_crtc_get_last_vbltimestamp drivers/gpu/drm/drm_vblank.c:878 [inline] drm_crtc_next_vblank_start+0x1d4/0x3e0 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+0x200/0x7c4 drivers/gpu/drm/drm_atomic_helper.c:1605 drm_atomic_helper_commit+0x4d0/0x8d4 drivers/gpu/drm/drm_atomic_helper.c:2034 drm_atomic_commit+0x264/0x2bc drivers/gpu/drm/drm_atomic.c:1516 drm_client_modeset_commit_atomic+0x5a4/0x730 drivers/gpu/drm/drm_client_modeset.c:1068 drm_client_modeset_commit_locked+0xd0/0x4a8 drivers/gpu/drm/drm_client_modeset.c:1171 drm_client_modeset_commit+0x50/0x7c 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+0xc0/0x160 drivers/gpu/drm/drm_fb_helper.c:2003 drm_fbdev_shmem_client_restore+0x3c/0x50 drivers/gpu/drm/drm_fbdev_shmem.c:229 drm_client_dev_restore+0x12c/0x24c drivers/gpu/drm/drm_client.c:260 drm_lastclose drivers/gpu/drm/drm_file.c:391 [inline] drm_release+0x330/0x3e8 drivers/gpu/drm/drm_file.c:424 __fput+0x1bc/0x75c fs/file_table.c:431 ____fput+0x20/0x30 fs/file_table.c:459 task_work_run+0x230/0x2e0 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:745 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 14348 hardirqs last enabled at (14347): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:85 [inline] hardirqs last enabled at (14347): [] exit_to_kernel_mode+0xdc/0x10c arch/arm64/kernel/entry-common.c:95 hardirqs last disabled at (14348): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (14156): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (14156): [] handle_softirqs+0xa38/0xbf8 kernel/softirq.c:582 softirqs last disabled at (14145): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]---