------------[ cut here ]------------ !RB_EMPTY_ROOT(&prime_fpriv->dmabufs) WARNING: drivers/gpu/drm/drm_prime.c:224 at drm_prime_destroy_file_private+0x48/0x60 drivers/gpu/drm/drm_prime.c:224, CPU#2: syz.3.203/6534 Modules linked in: CPU: 2 UID: 0 PID: 6534 Comm: syz.3.203 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP 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+0x48/0x60 drivers/gpu/drm/drm_prime.c:224 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 75 2b 48 8b 83 88 00 00 00 48 85 c0 75 0b e8 54 d0 65 fc 5b e9 8e e4 ea 05 e8 49 d0 65 fc 90 <0f> 0b 90 e8 40 d0 65 fc 5b c3 cc cc cc cc e8 d5 8e d3 fc eb ce 0f RSP: 0018:ffffc9000724fc90 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888057a0d328 RCX: ffffffff8b8be29d RDX: ffff888028eba500 RSI: ffffffff85a2d697 RDI: ffff888057a0d3b0 RBP: ffff888057a0d000 R08: 0000000000000001 R09: fffff52000e49f72 R10: ffffc9000724fb97 R11: 0000000000000000 R12: ffff888027aaa000 R13: ffff888057a0d260 R14: 0000000000000000 R15: ffff888057a0d288 FS: 0000555558307500(0000) GS:ffff8880d6572000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2f3de8 CR3: 0000000031ab4000 CR4: 0000000000352ef0 Call Trace: drm_file_free.part.0+0x7e6/0xcc0 drivers/gpu/drm/drm_file.c:269 drm_file_free drivers/gpu/drm/drm_file.c:237 [inline] drm_close_helper.isra.0+0x186/0x200 drivers/gpu/drm/drm_file.c:290 drm_release+0x1ab/0x360 drivers/gpu/drm/drm_file.c:438 __fput+0x3ff/0xb50 fs/file_table.c:510 task_work_run+0x150/0x240 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+0x107/0x4f0 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+0x706/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f36c559cdd9 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:00007fff96170578 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007fff96170660 RCX: 00007f36c559cdd9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00000000000102ff R08: 0000000000000001 R09: 0000000000000000 R10: 0000001b31e20000 R11: 0000000000000246 R12: 00007fff961706a0 R13: 00007f36c5815fac R14: 0000000000010334 R15: 00007f36c5815fa0