syzbot


WARNING in drm_prime_destroy_file_private (2)

Status: upstream: reported C repro on 2023/12/27 20:51
Subsystems: dri
[Documentation on labels]
Reported-by: syzbot+59dcc2e7283a6f5f5ba1@syzkaller.appspotmail.com
First crash: 412d, last: 1d16h
Cause bisection: introduced by (bisect log) :
commit ea4452de2ae987342fadbdd2c044034e6480daad
Author: Qi Zheng <zhengqi.arch@bytedance.com>
Date: Fri Nov 18 10:00:11 2022 +0000

  mm: fix unexpected changes to {failslab|fail_page_alloc}.attr

Crash: WARNING in drm_prime_destroy_file_private (log)
Repro: C syz .config
  
Discussions (6)
Title Replies (including bot) Last reply
[syzbot] Monthly dri report (Dec 2024) 0 (1) 2024/12/16 09:44
[syzbot] Monthly dri report (Oct 2024) 0 (1) 2024/10/13 19:21
[syzbot] Monthly dri report (Aug 2024) 0 (1) 2024/08/13 08:54
[syzbot] Monthly dri report (Jul 2024) 0 (1) 2024/07/12 10:05
[syzbot] Monthly dri report (Mar 2024) 0 (1) 2024/03/05 11:09
[syzbot] [dri?] WARNING in drm_prime_destroy_file_private (2) 6 (11) 2024/01/03 15:12
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in drm_prime_destroy_file_private dri 1 1067d 1063d 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 892d 1507d 0/1 upstream: reported C repro on 2020/12/23 07:13
linux-4.19 WARNING in drm_prime_destroy_file_private (2) C error 2 1015d 1015d 0/1 upstream: reported C repro on 2022/04/29 07:43
linux-4.19 WARNING in drm_prime_destroy_file_private syz done 6 1303d 1494d 1/1 fixed on 2021/08/15 11:28
Last patch testing requests (8)
Created Duration User Patch Repo Result
2025/02/06 08:59 23m retest repro upstream report log
2024/12/23 11:39 32m retest repro upstream report log
2024/05/12 18:31 24m retest repro upstream report log
2024/01/07 02:16 20m retest repro upstream report log
2023/12/30 01:59 46m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log
2023/12/30 01:04 17m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master report log
2023/12/29 11:29 53m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master report log
2023/12/28 11:56 14m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master report log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2025/01/23 01:24 1h18m bisect fix upstream OK (0) job log log
2024/11/19 10:43 1h37m bisect fix upstream OK (0) job log log
2024/10/13 02:50 1h53m bisect fix upstream OK (0) job log log
2024/09/12 09:11 7h04m bisect fix upstream OK (0) job log log
2024/08/08 23:44 2h17m bisect fix upstream OK (0) job log log
2024/07/09 05:51 2h41m bisect fix upstream OK (0) job log log
2024/03/03 15:30 2h21m bisect fix upstream OK (0) job log log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5817 at drivers/gpu/drm/drm_prime.c:227 drm_prime_destroy_file_private+0x43/0x60 drivers/gpu/drm/drm_prime.c:227
Modules linked in:
CPU: 0 UID: 0 PID: 5817 Comm: syz-executor237 Not tainted 6.13.0-rc1-syzkaller-00378-g62b5a46999c7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:drm_prime_destroy_file_private+0x43/0x60 drivers/gpu/drm/drm_prime.c:227
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 73 b5 5e fc e8 6e b5 5e fc 90 <0f> 0b 90 5b e9 64 b5 5e fc e8 af 9d c1 fc eb d8 66 66 2e 0f 1f 84
RSP: 0018:ffffc9000469fbe8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888076033380 RCX: 1ffffffff20bda11
RDX: ffff88802b4e8000 RSI: ffffffff853b50d2 RDI: ffff888076033410
RBP: ffff888076033000 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff905f12d7 R11: ffffffff8b400130 R12: ffff888025644000
R13: ffff8880760332b0 R14: ffff888025644068 R15: ffff8880256440a0
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f705b8f5d58 CR3: 000000007bbe6000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 drm_file_free.part.0+0x748/0xbe0 drivers/gpu/drm/drm_file.c:257
 drm_file_free drivers/gpu/drm/drm_file.c:228 [inline]
 drm_close_helper.isra.0+0x186/0x1f0 drivers/gpu/drm/drm_file.c:278
 drm_release+0x1a9/0x360 drivers/gpu/drm/drm_file.c:426
 __fput+0x3f8/0xb60 fs/file_table.c:450
 task_work_run+0x14e/0x250 kernel/task_work.c:239
 exit_task_work include/linux/task_work.h:43 [inline]
 do_exit+0xadd/0x2d70 kernel/exit.c:938
 do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
 __do_sys_exit_group kernel/exit.c:1098 [inline]
 __se_sys_exit_group kernel/exit.c:1096 [inline]
 __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1096
 x64_sys_call+0x151f/0x1720 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f705b9678a9
Code: Unable to access opcode bytes at 0x7f705b96787f.
RSP: 002b:00007ffc93e53e78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f705b9678a9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 00007f705b9ec3d0 R08: ffffffffffffffb0 R09: 0000000693e540b0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f705b9ec3d0
R13: 0000000000000000 R14: 00007f705b9ef020 R15: 00007f705b92ab80
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/09 08:40 upstream 62b5a46999c7 9ac0fdc6 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in drm_prime_destroy_file_private
2023/12/23 21:12 upstream 5254c0cbc92d fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in drm_prime_destroy_file_private
2024/12/09 07:41 upstream 62b5a46999c7 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in drm_prime_destroy_file_private
2023/12/23 20:47 upstream 5254c0cbc92d fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in drm_prime_destroy_file_private
* Struck through repros no longer work on HEAD.