------------[ cut here ]------------ WARNING: CPU: 0 PID: 5336 at drivers/gpu/drm/drm_gem.c:286 drm_gem_object_handle_put_unlocked+0x28f/0x340 drivers/gpu/drm/drm_gem.c:286 Modules linked in: CPU: 0 UID: 0 PID: 5336 Comm: syz.0.0 Not tainted 6.16.0-rc4-syzkaller-00286-gc435a4f487e8 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:drm_gem_object_handle_put_unlocked+0x28f/0x340 drivers/gpu/drm/drm_gem.c:286 Code: 89 ee e8 54 ee 5d fc 85 ed 7e 2f e8 0b ea 5d fc 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc e8 f2 e9 5d fc 90 <0f> 0b 90 eb e1 e8 e7 e9 5d fc 90 0f 0b 90 eb d6 e8 dc e9 5d fc 4c RSP: 0018:ffffc9000d3cfb10 EFLAGS: 00010293 RAX: ffffffff856274ae RBX: ffff888033fda008 RCX: ffff88803ba98000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff8fa1e7f7 R09: 1ffffffff1f43cfe R10: dffffc0000000000 R11: fffffbfff1f43cff R12: ffff888033fda004 R13: 1ffff110067fb400 R14: ffff888000cb4000 R15: 1ffff110067fb401 FS: 000055556c20a500(0000) GS:ffff88808d21c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2d09186538 CR3: 0000000043dd3000 CR4: 0000000000352ef0 Call Trace: drm_gem_object_release_handle+0xa2/0xc0 drivers/gpu/drm/drm_gem.c:324 idr_for_each+0x1b5/0x290 lib/idr.c:208 drm_gem_release+0x28/0x40 drivers/gpu/drm/drm_gem.c:999 drm_file_free+0x6c7/0x960 drivers/gpu/drm/drm_file.c:249 drm_close_helper drivers/gpu/drm/drm_file.c:278 [inline] drm_release+0x2de/0x3f0 drivers/gpu/drm/drm_file.c:426 __fput+0x44c/0xa70 fs/file_table.c:465 task_work_run+0x1d1/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xec/0x110 kernel/entry/common.c:114 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2d08f8e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff21d4efb8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00000000000107cc RCX: 00007f2d08f8e929 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f2d091b7ba0 R08: 0000000000000001 R09: 0000000721d4f2af R10: 00007f2d08dff02c R11: 0000000000000246 R12: 00007f2d091b5fac R13: 00007f2d091b5fa0 R14: ffffffffffffffff R15: 00007fff21d4f0d0