syzbot


WARNING in drm_gem_prime_fd_to_handle

Status: upstream: reported C repro on 2023/12/08 05:49
Subsystems: dri
[Documentation on labels]
Reported-by: syzbot+268d319a7bfd92f4ae01@syzkaller.appspotmail.com
First crash: 353d, last: 1d15h
Cause bisection: introduced by (bisect log) :
commit 85e26dd5100a182bf8448050427539c0a66ab793
Author: Christian KΓΆnig <christian.koenig@amd.com>
Date: Thu Jan 26 09:24:26 2023 +0000

  drm/client: fix circular reference counting issue

Crash: WARNING in drm_gem_prime_fd_to_handle (log)
Repro: C syz .config
  
Discussions (11)
Title Replies (including bot) Last reply
[syzbot] Monthly dri report (Nov 2024) 0 (1) 2024/11/14 08:59
[syzbot] Monthly dri report (Oct 2024) 0 (1) 2024/10/13 19:21
[syzbot] Monthly dri report (Sep 2024) 0 (1) 2024/09/12 14:24
[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 (Jun 2024) 0 (1) 2024/06/10 12:41
[syzbot] Monthly dri report (May 2024) 0 (1) 2024/05/06 13:18
[syzbot] Monthly dri report (Mar 2024) 0 (1) 2024/03/05 11:09
[syzbot] Monthly dri report (Feb 2024) 0 (1) 2024/02/02 21:05
[syzbot] Monthly dri report (Jan 2024) 0 (1) 2024/01/02 13:36
[syzbot] [dri?] WARNING in drm_gem_prime_fd_to_handle 0 (1) 2023/12/08 05:49
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/11/11 01:46 33m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/10/27 16:25 16m retest repro upstream report log
2024/10/27 16:25 20m retest repro upstream report log
2024/10/13 14:18 17m retest repro upstream report log
2024/10/13 14:18 18m retest repro upstream report log
2024/10/13 14:26 12m retest repro upstream report log
2024/10/13 14:18 15m retest repro linux-next report log
2024/09/22 10:38 17m retest repro upstream report log
2024/09/08 10:18 17m retest repro upstream report log
2024/08/25 09:30 27m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/08/01 03:50 1h28m bisect fix upstream OK (0) job log log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5974 at drivers/gpu/drm/drm_prime.c:326 drm_gem_prime_fd_to_handle+0x3f5/0x4b0 drivers/gpu/drm/drm_prime.c:326
Modules linked in:
CPU: 1 UID: 0 PID: 5974 Comm: syz-executor347 Not tainted 6.12.0-syzkaller-00239-gc6d64479d609 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
RIP: 0010:drm_gem_prime_fd_to_handle+0x3f5/0x4b0 drivers/gpu/drm/drm_prime.c:326
Code: 0a 01 48 8b 2c 24 4c 8b 64 24 08 75 3c e8 f3 b2 32 fc e9 c7 fe ff ff e8 e9 b2 32 fc 4c 89 ff e9 49 ff ff ff e8 dc b2 32 fc 90 <0f> 0b 90 e9 a3 fe ff ff e8 ce b2 32 fc 4c 89 ff be 03 00 00 00 e8
RSP: 0018:ffffc90003e37be8 EFLAGS: 00010293
RAX: ffffffff85623dd4 RBX: 1ffff11003e76d25 RCX: ffff888024221e00
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 00000000ffffffff
RBP: ffff88801f3b6928 R08: ffffffff85625fce R09: 1ffff11003e76d00
R10: dffffc0000000000 R11: ffffed1003e76d01 R12: ffff88807f015000
R13: dffffc0000000000 R14: ffff88807f015000 R15: ffff88801f3b6800
FS:  0000555576fd6380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555576fd6650 CR3: 000000007eb1e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 drm_ioctl_kernel+0x337/0x440 drivers/gpu/drm/drm_ioctl.c:745
 drm_ioctl+0x60e/0xad0 drivers/gpu/drm/drm_ioctl.c:842
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f91cc740ee9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd52183188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f91cc740ee9
RDX: 0000000020000180 RSI: 00000000c00c642e RDI: 0000000000000004
RBP: 0000000000000000 R08: 00000000000000a0 R09: 00000000000000a0
R10: 00000000000000a0 R11: 0000000000000246 R12: 0000000000012ce2
R13: 00007ffd5218319c R14: 00007ffd521831b0 R15: 00007ffd521831a0
 </TASK>

Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/19 14:53 upstream c6d64479d609 571351cb .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in drm_gem_prime_fd_to_handle
2024/05/05 07:02 upstream 7367539ad4b0 610f2a54 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in drm_gem_prime_fd_to_handle
2024/04/25 11:15 upstream e88c4cfcb7b8 8bdc0f22 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in drm_gem_prime_fd_to_handle
2024/03/19 00:50 upstream fe46a7dd189e baa80228 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in drm_gem_prime_fd_to_handle
2024/01/22 14:44 upstream 6613476e225e 9bd8dcda .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in drm_gem_prime_fd_to_handle
2024/01/12 08:35 upstream 22d29f1112c8 dda5a988 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in drm_gem_prime_fd_to_handle
2023/12/04 05:45 upstream 33cc938e65a9 f819d6f7 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in drm_gem_prime_fd_to_handle
2024/09/29 14:13 upstream 3efc57369a0c ba29ff75 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in drm_gem_prime_fd_to_handle
2024/05/18 11:57 linux-next c75962170e49 c0f1611a .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in drm_gem_prime_fd_to_handle
2023/12/12 04:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0128e0962959 28b24332 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in drm_gem_prime_fd_to_handle
2024/02/28 10:29 upstream cf1182944c7c d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in drm_gem_prime_fd_to_handle
2024/02/07 23:22 upstream 6d280f4d760e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in drm_gem_prime_fd_to_handle
2024/01/13 03:24 upstream 70d201a40823 dda5a988 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in drm_gem_prime_fd_to_handle
2024/01/13 02:54 upstream 70d201a40823 dda5a988 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in drm_gem_prime_fd_to_handle
2023/12/20 18:08 upstream 55cb5f43689d 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in drm_gem_prime_fd_to_handle
2023/12/04 05:05 upstream 33cc938e65a9 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in drm_gem_prime_fd_to_handle
2023/12/20 18:29 linux-next 20d857259d7d 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in drm_gem_prime_fd_to_handle
2023/12/09 12:41 linux-next 8e00ce02066e 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in drm_gem_prime_fd_to_handle
2024/03/12 10:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in drm_gem_prime_fd_to_handle
* Struck through repros no longer work on HEAD.