------------[ cut here ]------------ WARNING: CPU: 1 PID: 2127 at drivers/gpu/drm/drm_prime.c:331 drm_gem_prime_fd_to_handle+0x1b5/0x1c0 drivers/gpu/drm/drm_prime.c:331 Modules linked in: CPU: 1 PID: 2127 Comm: syz-executor.0 Not tainted 6.2.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:drm_gem_prime_fd_to_handle+0x1b5/0x1c0 drivers/gpu/drm/drm_prime.c:331 Code: c7 e9 37 ff ff ff be 03 00 00 00 4c 89 ff e8 82 4c df ff e9 6f ff ff ff 48 8b 3c 24 44 89 fd e8 01 67 a7 00 e9 c2 fe ff ff 90 <0f> 0b 90 e9 2d ff ff ff 0f 1f 00 f3 0f 1e fa 41 54 49 89 fc 48 89 RSP: 0018:ffffc90001ec3d90 EFLAGS: 00010206 RAX: ffff888101f22a00 RBX: ffff888103775800 RCX: 0000000000000007 RDX: 0000000000000005 RSI: ffff888107a79010 RDI: ffff888107668000 RBP: ffff888107668000 R08: 0000000000000000 R09: 0000000000000252 R10: ffffc90001ec3d90 R11: ffffc90001ec3e72 R12: ffffc90001ec3e50 R13: ffff888103775b70 R14: ffff888101f22200 R15: ffff888107662000 FS: 00007fae260f76c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fae255980c0 CR3: 0000000108b21000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_ioctl_kernel+0xc4/0x170 drivers/gpu/drm/drm_ioctl.c:788 drm_ioctl+0x1e2/0x450 drivers/gpu/drm/drm_ioctl.c:891 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x84/0xc0 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x64/0xce RIP: 0033:0x7fae2547cae9 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:00007fae260f70c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fae2559bf80 RCX: 00007fae2547cae9 RDX: 0000000020000180 RSI: 00000000c00c642e RDI: 0000000000000004 RBP: 00007fae254c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007fae2559bf80 R15: 00007ffe0c4fb7f8