syzbot


WARNING in drm_prime_destroy_file_private (2)

Status: upstream: reported C repro on 2022/04/29 07:43
Reported-by: syzbot+bef218b44977b8287cc3@syzkaller.appspotmail.com
First crash: 959d, last: 959d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in drm_prime_destroy_file_private (2) dri C done 4 4d01h 351d 0/28 upstream: reported C repro on 2023/12/27 20:51
upstream WARNING in drm_prime_destroy_file_private dri 1 1011d 1007d 0/28 auto-closed as invalid on 2022/07/06 07:47
linux-4.14 WARNING in drm_prime_destroy_file_private C error 7 836d 1451d 0/1 upstream: reported C repro on 2020/12/23 07:13
linux-4.19 WARNING in drm_prime_destroy_file_private syz done 6 1246d 1437d 1/1 fixed on 2021/08/15 11:28

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 9716 at drivers/gpu/drm/drm_prime.c:982 drm_prime_destroy_file_private.cold+0x11/0x18 drivers/gpu/drm/drm_prime.c:982
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 9716 Comm: syz-executor302 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:drm_prime_destroy_file_private.cold+0x11/0x18 drivers/gpu/drm/drm_prime.c:982
Code: 64 f9 48 c7 c7 80 93 c5 88 e8 a7 81 f5 ff 0f 0b 41 83 cc ff e9 4e 97 da fb e8 2c 50 64 f9 48 c7 c7 80 93 c5 88 e8 8b 81 f5 ff <0f> 0b e9 7a a2 da fb e8 14 50 64 f9 48 c7 c7 60 95 c5 88 e8 73 81
RSP: 0018:ffff88809bdcf968 EFLAGS: 00010286
RAX: 0000000000000024 RBX: ffff8880aa605290 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10137b9f1f
RBP: ffffffff83e99a40 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888092b2cdc0
R13: ffff888092b2d000 R14: ffff888092b2d010 R15: ffff888092b2cfe8
 drm_file_free.part.0+0xa15/0xd30 drivers/gpu/drm/drm_file.c:257
 drm_file_free drivers/gpu/drm/drm_file.c:215 [inline]
 drm_release+0x210/0x360 drivers/gpu/drm/drm_file.c:480
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xbf3/0x2be0 kernel/exit.c:870
 do_group_exit+0x125/0x310 kernel/exit.c:967
 get_signal+0x3f2/0x1f70 kernel/signal.c:2589
 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799
 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f37712ef129
Code: Bad RIP value.
RSP: 002b:00007f377127b2f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f3771372430 RCX: 00007f37712ef129
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f3771372438
RBP: 00007f377137243c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f3771340074
R13: 6972642f7665642f R14: 65732f636f72702f R15: 00007f3771372438
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/29 08:11 linux-4.19.y 3f8a27f9e27b e9076525 .config console log report syz C ci2-linux-4-19 WARNING in drm_prime_destroy_file_private
2022/04/29 07:43 linux-4.19.y 3f8a27f9e27b e9076525 .config console log report info ci2-linux-4-19 WARNING in drm_prime_destroy_file_private
* Struck through repros no longer work on HEAD.