------------[ cut here ]------------ WARNING: CPU: 2 PID: 2802 at drivers/gpu/drm/drm_prime.c:223 drm_prime_destroy_file_private+0x43/0x60 drivers/gpu/drm/drm_prime.c:223 Modules linked in: CPU: 2 UID: 0 PID: 2802 Comm: syz.6.4007 Not tainted syzkaller #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_prime_destroy_file_private+0x43/0x60 drivers/gpu/drm/drm_prime.c:223 Code: 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 21 48 8b 83 90 00 00 00 48 85 c0 75 06 5b e9 c3 42 74 fc e8 be 42 74 fc 90 <0f> 0b 90 5b e9 b4 42 74 fc e8 6f cf dc fc eb d8 66 66 2e 0f 1f 84 RSP: 0018:ffffc9000db07cc8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880568c2380 RCX: ffffffff8b61cb01 RDX: ffff8880637f0000 RSI: ffffffff8548cae2 RDI: ffff8880568c2410 RBP: ffff8880568c2000 R08: 0000000000000001 R09: fffff52001b60f79 R10: ffffc9000db07bcf R11: 0000000000000000 R12: ffff888105a38000 R13: ffff8880568c22b0 R14: 0000000000000000 R15: ffff8880568c22d8 FS: 0000555563ce6500(0000) GS:ffff8880d6c08000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa0cf7156c0 CR3: 0000000049ee5000 CR4: 0000000000352ef0 Call Trace: drm_file_free.part.0+0x7ee/0xcd0 drivers/gpu/drm/drm_file.c:269 drm_file_free drivers/gpu/drm/drm_file.c:237 [inline] drm_close_helper.isra.0+0x186/0x1f0 drivers/gpu/drm/drm_file.c:290 drm_release+0x1ab/0x360 drivers/gpu/drm/drm_file.c:438 __fput+0x402/0xb70 fs/file_table.c:468 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xec/0x130 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x426/0xfa0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f050b58f6c9 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:00007ffeb733be58 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f050b7e7da0 RCX: 00007f050b58f6c9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f050b7e7da0 R08: 00000000000001b4 R09: 00000019b733c14f R10: 00007f050b7e7cb0 R11: 0000000000000246 R12: 000000000005468b R13: 00007f050b7e5fa0 R14: ffffffffffffffff R15: 00007ffeb733bf70