------------[ cut here ]------------ WARNING: CPU: 1 PID: 7767 at drivers/gpu/drm/vkms/vkms_crtc.c:103 vkms_get_vblank_timestamp+0x1a4/0x1d4 drivers/gpu/drm/vkms/vkms_crtc.c:103 Modules linked in: CPU: 1 PID: 7767 Comm: syz-executor.2 Not tainted 6.9.0-rc3-syzkaller-gb5d2afe8745b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : vkms_get_vblank_timestamp+0x1a4/0x1d4 drivers/gpu/drm/vkms/vkms_crtc.c:103 lr : vkms_get_vblank_timestamp+0x1a4/0x1d4 drivers/gpu/drm/vkms/vkms_crtc.c:103 sp : ffff80009fbb7510 x29: ffff80009fbb7510 x28: ffff0000c568f880 x27: 0000000000000000 x26: 1ffff00013f76eb0 x25: 1ffff00013f76ed4 x24: 0000000000000000 x23: ffff0000c8d6c000 x22: dfff800000000000 x21: 000000150e4e8590 x20: 000000150e4e8590 x19: ffff80009fbb76a0 x18: 1fffe000367be196 x17: ffff800080b3a580 x16: ffff80008adab880 x15: 0000000000000002 x14: 1fffe0001b118521 x13: 0000000000000000 x12: ffff80009a8fa000 x11: 0000000000040000 x10: 00000000000037b7 x9 : ffff8000a9800000 x8 : 00000000000037b8 x7 : 0000000000000000 x6 : ffff80009a8fa000 x5 : ffff0000d88c2918 x4 : ffff0000d88c28d8 x3 : 0000000000000000 x2 : ffff80009fbb76a0 x1 : 000000150e4e8590 x0 : 000000150e4e8590 Call trace: vkms_get_vblank_timestamp+0x1a4/0x1d4 drivers/gpu/drm/vkms/vkms_crtc.c:103 drm_crtc_get_last_vbltimestamp drivers/gpu/drm/drm_vblank.c:867 [inline] drm_crtc_next_vblank_start+0x1d4/0x3e0 drivers/gpu/drm/drm_vblank.c:1002 set_fence_deadline drivers/gpu/drm/drm_atomic_helper.c:1557 [inline] drm_atomic_helper_wait_for_fences+0x200/0x7c4 drivers/gpu/drm/drm_atomic_helper.c:1604 drm_atomic_helper_commit+0x4d0/0x8d4 drivers/gpu/drm/drm_atomic_helper.c:2033 drm_atomic_commit+0x274/0x2d0 drivers/gpu/drm/drm_atomic.c:1514 drm_client_modeset_commit_atomic+0x5a4/0x730 drivers/gpu/drm/drm_client_modeset.c:1051 drm_client_modeset_commit_locked+0xd0/0x4a8 drivers/gpu/drm/drm_client_modeset.c:1154 drm_client_modeset_commit+0x50/0x7c drivers/gpu/drm/drm_client_modeset.c:1180 __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+0xc0/0x160 drivers/gpu/drm/drm_fb_helper.c:2005 drm_fbdev_generic_client_restore+0x3c/0x50 drivers/gpu/drm/drm_fbdev_generic.c:258 drm_client_dev_restore+0x12c/0x24c drivers/gpu/drm/drm_client.c:247 drm_lastclose drivers/gpu/drm/drm_file.c:406 [inline] drm_release+0x4ac/0x504 drivers/gpu/drm/drm_file.c:437 __fput+0x30c/0x738 fs/file_table.c:422 ____fput+0x20/0x30 fs/file_table.c:450 task_work_run+0x230/0x2e0 kernel/task_work.c:180 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:713 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 3306 hardirqs last enabled at (3305): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:85 [inline] hardirqs last enabled at (3305): [] exit_to_kernel_mode+0xdc/0x10c arch/arm64/kernel/entry-common.c:95 hardirqs last disabled at (3306): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (3226): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (3224): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---