------------[ cut here ]------------ WARNING: CPU: 1 PID: 4742 at drivers/gpu/drm/drm_prime.c:331 drm_gem_prime_fd_to_handle+0x1b4/0x1c0 drivers/gpu/drm/drm_prime.c:362 Modules linked in: CPU: 1 PID: 4742 Comm: syz-executor.3 Not tainted 6.2.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:drm_gem_prime_fd_to_handle+0x1b4/0x1c0 drivers/gpu/drm/drm_prime.c:331 Code: 89 c7 e9 37 ff ff ff be 03 00 00 00 4c 89 ff e8 52 38 df ff e9 6f ff ff ff 48 8b 3c 24 44 89 fd e8 11 e1 a8 00 e9 c2 fe ff ff <0f> 0b e9 2f ff ff ff 0f 1f 44 00 00 f3 0f 1e fa 41 54 49 89 fc 48 RSP: 0018:ffffc90001ccfd90 EFLAGS: 00010206 RAX: ffff88810628fe00 RBX: ffff888107b99800 RCX: 0000000000000007 RDX: 0000000000000005 RSI: ffff88810ae4a010 RDI: ffff888105240000 RBP: ffff888105240000 R08: 0000000000000000 R09: 000000000000024d R10: ffffc90001ccfd90 R11: ffffc90001ccfe72 R12: ffffc90001ccfe50 R13: ffff888107b99b70 R14: ffff88810628e800 R15: ffff888105245000 FS: 00007f2cc2b806c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc9913980c0 CR3: 0000000105f9e000 CR4: 0000000000350ee0 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+0x38/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2cc1e7cae9 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:00007f2cc2b800c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f2cc1f9bf80 RCX: 00007f2cc1e7cae9 RDX: 0000000020000000 RSI: 00000000c00c642e RDI: 0000000000000003 RBP: 00007f2cc1ec847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f2cc1f9bf80 R15: 00007fff15f5fb18