------------[ cut here ]------------ WARNING: CPU: 1 PID: 7182 at drivers/gpu/drm/drm_prime.c:326 drm_gem_prime_fd_to_handle+0x3f5/0x4b0 drivers/gpu/drm/drm_prime.c:326 Modules linked in: CPU: 1 UID: 0 PID: 7182 Comm: syz-executor.2 Not tainted 6.14.0-rc2-next-20250217-syzkaller-04577-g253c82b3a2ce #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:drm_gem_prime_fd_to_handle+0x3f5/0x4b0 drivers/gpu/drm/drm_prime.c:326 Code: 0a 01 48 8b 2c 24 4c 8b 64 24 08 75 3c e8 63 6b 1c fc e9 c7 fe ff ff e8 59 6b 1c fc 4c 89 ff e9 49 ff ff ff e8 4c 6b 1c fc 90 <0f> 0b 90 e9 a3 fe ff ff e8 3e 6b 1c fc 4c 89 ff be 03 00 00 00 e8 RSP: 0018:ffffc90003ac7be8 EFLAGS: 00010293 RAX: ffffffff85a59374 RBX: 1ffff110041f4b25 RCX: ffff88807d821e00 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 00000000ffffffff RBP: ffff888020fa5928 R08: ffffffff85a5b56e R09: 1ffff110041f4b00 R10: dffffc0000000000 R11: ffffed10041f4b01 R12: ffff8880301e6c00 R13: dffffc0000000000 R14: ffff8880301e6c00 R15: ffff888020fa5800 FS: 00007f5127d486c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe9ee1a80c0 CR3: 000000006bbe0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_ioctl_kernel+0x337/0x440 drivers/gpu/drm/drm_ioctl.c:796 drm_ioctl+0x698/0xba0 drivers/gpu/drm/drm_ioctl.c:893 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f512707cee9 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:00007f5127d480c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f51271abf80 RCX: 00007f512707cee9 RDX: 0000000020000000 RSI: 00000000c00c642e RDI: 0000000000000003 RBP: 00007f51270c949e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f51271abf80 R15: 00007ffde3497928