------------[ cut here ]------------ !RB_EMPTY_ROOT(&prime_fpriv->dmabufs) WARNING: drivers/gpu/drm/drm_prime.c:224 at drm_prime_destroy_file_private+0x4b/0x60 drivers/gpu/drm/drm_prime.c:224, CPU#0: syz.0.0/5325 Modules linked in: CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:drm_prime_destroy_file_private+0x4b/0x60 drivers/gpu/drm/drm_prime.c:224 Code: 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 2d c9 c6 fc 48 83 3b 00 75 0c e8 72 fd 59 fc 5b e9 cc e4 41 06 cc e8 66 fd 59 fc 90 <0f> 0b 90 5b e9 bc e4 41 06 cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 RSP: 0018:ffffc90006d27c40 EFLAGS: 00010293 RAX: ffffffff856bd3da RBX: ffff8880420c73b0 RCX: ffff888036630000 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8880420c7328 RBP: ffff8880420c7278 R08: ffffc90006d27bc7 R09: 1ffff92000da4f78 R10: dffffc0000000000 R11: fffff52000da4f79 R12: dffffc0000000000 R13: dead000000000100 R14: 0000000000000000 R15: ffff8880420c7288 FS: 0000555556b43540(0000) GS:ffff88808c881000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000007000 CR3: 00000000424ba000 CR4: 0000000000352ef0 Call Trace: drm_file_free+0x7f1/0xa00 drivers/gpu/drm/drm_file.c:269 drm_close_helper drivers/gpu/drm/drm_file.c:290 [inline] drm_release+0x2de/0x3f0 drivers/gpu/drm/drm_file.c:438 __fput+0x44f/0xa60 fs/file_table.c:510 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0xf3/0x4d0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] do_syscall_64+0x33e/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa52cf9ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffef0a36158 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007fa52d217da0 RCX: 00007fa52cf9ce59 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007fa52d217da0 R08: 00007fa52d216038 R09: 0000000000000000 R10: 0000000000ddeba8 R11: 0000000000000246 R12: 0000000000014dcd R13: 00007fa52d21609c R14: 0000000000014d65 R15: 00007fa52d216090