------------[ cut here ]------------ WARNING: CPU: 0 PID: 6967 at drivers/gpu/drm/drm_prime.c:326 drm_gem_prime_fd_to_handle+0x398/0x488 drivers/gpu/drm/drm_prime.c:326 Modules linked in: CPU: 0 UID: 0 PID: 6967 Comm: syz-executor.4 Not tainted 6.12.0-rc6-syzkaller-00200-g563047e691f2 #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 : drm_gem_prime_fd_to_handle+0x398/0x488 drivers/gpu/drm/drm_prime.c:326 lr : drm_gem_prime_fd_to_handle+0x398/0x488 drivers/gpu/drm/drm_prime.c:326 sp : ffff8000a1a179c0 x29: ffff8000a1a179c0 x28: 1fffe0001ac3fe10 x27: 1ffff00014342f50 x26: dfff800000000000 x25: 1fffe00018ea4c25 x24: ffff0000c7526128 x23: ffff0000c7526000 x22: ffff0000d61ff000 x21: ffff0000d61ff380 x20: ffff8000a1a17bf0 x19: ffff0000e3898000 x18: 0000000000000000 x17: 0000000000000000 x16: ffff8000802a7c40 x15: 0000000000000001 x14: 1fffe00018ea4c00 x13: 0000000000000000 x12: 0000000000000000 x11: ffff600018ea4c01 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000d8d85ac0 x7 : ffff800084119ef8 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80008411c2a8 x2 : 0000000000000001 x1 : 0000000000000007 x0 : ffff0000c7526000 Call trace: drm_gem_prime_fd_to_handle+0x398/0x488 drivers/gpu/drm/drm_prime.c:326 (P) drm_gem_prime_fd_to_handle+0x398/0x488 drivers/gpu/drm/drm_prime.c:326 (L) drm_prime_fd_to_handle_ioctl+0xb4/0xf0 drivers/gpu/drm/drm_prime.c:375 drm_ioctl_kernel+0x26c/0x368 drivers/gpu/drm/drm_ioctl.c:745 drm_ioctl+0x624/0xb14 drivers/gpu/drm/drm_ioctl.c:842 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:893 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 496 hardirqs last enabled at (495): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:234 hardirqs last disabled at (496): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (478): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (476): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---