syzbot


WARNING in drm_prime_fd_to_handle_ioctl

Status: auto-obsoleted due to no activity on 2025/07/27 00:45
Subsystems: dri
[Documentation on labels]
Reported-by: syzbot+0da81ccba2345eeb7f48@syzkaller.appspotmail.com
First crash: 675d, last: 121d
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
  
Fix bisection: failed (error log, bisect log)
  
Discussions (5)
Title Replies (including bot) Last reply
[syzbot] Monthly dri report (Apr 2025) 0 (1) 2025/04/22 12:41
[syzbot] Monthly dri report (Mar 2025) 0 (1) 2025/03/18 14:49
[syzbot] Monthly dri report (Aug 2024) 0 (1) 2024/08/13 08:54
[syzbot] Monthly dri report (Oct 2023) 0 (1) 2023/10/30 12:59
[syzbot] [dri?] WARNING in drm_prime_fd_to_handle_ioctl 1 (2) 2023/10/16 12:06
Last patch testing requests (4)
Created Duration User Patch Repo Result
2025/07/26 23:46 58m retest repro upstream OK log
2024/05/19 12:53 16m retest repro upstream report log
2023/10/25 05:05 14m retest repro upstream report log
2023/10/15 07:48 22m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log
Fix bisection attempts (14)
Created Duration User Patch Repo Result
2025/05/17 22:02 7m bisect fix upstream error job log
2025/04/17 00:31 2h35m bisect fix upstream OK (0) job log log
2025/03/17 22:05 1h56m bisect fix upstream OK (0) job log log
2025/02/15 20:04 1h58m bisect fix upstream OK (0) job log log
2025/01/16 02:08 2h53m bisect fix upstream OK (0) job log log
2024/12/10 14:49 1h47m bisect fix upstream OK (0) job log log
2024/11/03 08:06 1h28m bisect fix upstream OK (0) job log log
2024/09/28 17:04 4h11m bisect fix upstream OK (0) job log log
2024/08/28 18:46 1h28m bisect fix upstream OK (0) job log log
2024/07/29 16:42 1h57m bisect fix upstream OK (0) job log log
2024/06/15 18:01 11h51m bisect fix upstream OK (0) job log log
2024/03/10 10:57 1h28m bisect fix upstream OK (0) job log log
2024/01/17 09:02 2h54m bisect fix upstream OK (0) job log log
2023/12/16 16:57 2h19m bisect fix upstream OK (0) job log log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3321 at drivers/gpu/drm/drm_prime.c:326 drm_gem_prime_fd_to_handle drivers/gpu/drm/drm_prime.c:326 [inline]
WARNING: CPU: 0 PID: 3321 at drivers/gpu/drm/drm_prime.c:326 drm_prime_fd_to_handle_ioctl+0x556/0x600 drivers/gpu/drm/drm_prime.c:374
Modules linked in:
CPU: 0 PID: 3321 Comm: syz-executor.0 Not tainted 6.7.0-rc1-syzkaller-00019-gc42d9eeef8e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:drm_gem_prime_fd_to_handle drivers/gpu/drm/drm_prime.c:326 [inline]
RIP: 0010:drm_prime_fd_to_handle_ioctl+0x556/0x600 drivers/gpu/drm/drm_prime.c:374
Code: df e8 ae c1 ea fc f0 48 ff 03 e9 7e fd ff ff e8 f0 31 94 fc 4c 89 f7 44 89 eb e8 45 97 8e 05 e9 da fe ff ff e8 db 31 94 fc 90 <0f> 0b 90 e9 5b fd ff ff e8 dd ba ea fc e9 38 fc ff ff 48 8b 7c 24
RSP: 0018:ffffc9000d357c70 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8880325a0400 RCX: ffffffff84f35c27
RDX: ffff8880332f8000 RSI: ffffffff84f35f15 RDI: ffff88801d514928
RBP: ffff8880325a0000 R08: 0000000000000007 R09: fffffffffffff000
R10: ffff88801d514800 R11: 0000000000000001 R12: ffffc9000d357e10
R13: ffff88801d514800 R14: ffff88801d214c10 R15: ffff8880325a0400
FS:  00007f29653976c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2965397d58 CR3: 0000000027ca3000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 drm_ioctl_kernel+0x28c/0x4d0 drivers/gpu/drm/drm_ioctl.c:792
 drm_ioctl+0x5cb/0xbf0 drivers/gpu/drm/drm_ioctl.c:895
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl fs/ioctl.c:857 [inline]
 __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f296467cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f29653970c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f296479c120 RCX: 00007f296467cae9
RDX: 0000000020000180 RSI: 00000000c00c642e RDI: 0000000000000004
RBP: 00007f29646c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f296479c120 R15: 00007f29648bfa48
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/16 13:20 upstream c42d9eeef8e5 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in drm_prime_fd_to_handle_ioctl
2023/10/11 04:08 upstream 1c8b86a3799f 83165b57 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in drm_prime_fd_to_handle_ioctl
2023/10/11 03:30 upstream 1c8b86a3799f 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in drm_prime_fd_to_handle_ioctl
* Struck through repros no longer work on HEAD.