syzbot


memory leak in drm_mode_atomic_ioctl

Status: upstream: reported C repro on 2025/12/04 14:25
Subsystems: dri
[Documentation on labels]
Reported-by: syzbot+3fc9eecaf97147282c87@syzkaller.appspotmail.com
First crash: 49d, last: 35d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly dri report (Dec 2025) 0 (1) 2025/12/29 08:12
[syzbot] [dri?] memory leak in drm_mode_atomic_ioctl 1 (3) 2025/12/04 16:47
Last patch testing requests (2)
Created Duration User Patch Repo Result
2025/12/14 14:21 25m retest repro upstream report log
2025/12/04 15:57 34m ssranevjti@gmail.com patch upstream OK log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888125711880 (size 128):
  comm "syz.0.18", pid 6089, jiffies 4294942955
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace (crc f5a89fc0):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4983 [inline]
    slab_alloc_node mm/slub.c:5288 [inline]
    __kmalloc_cache_noprof+0x3a6/0x5b0 mm/slub.c:5766
    kmalloc_noprof include/linux/slab.h:957 [inline]
    kzalloc_noprof include/linux/slab.h:1094 [inline]
    create_vblank_event drivers/gpu/drm/drm_atomic_uapi.c:931 [inline]
    prepare_signaling drivers/gpu/drm/drm_atomic_uapi.c:1221 [inline]
    drm_mode_atomic_ioctl+0x924/0x13d0 drivers/gpu/drm/drm_atomic_uapi.c:1529
    drm_ioctl_kernel+0x125/0x1f0 drivers/gpu/drm/drm_ioctl.c:797
    drm_ioctl+0x371/0x6b0 drivers/gpu/drm/drm_ioctl.c:894
    vfs_ioctl fs/ioctl.c:51 [inline]
    __do_sys_ioctl fs/ioctl.c:597 [inline]
    __se_sys_ioctl fs/ioctl.c:583 [inline]
    __x64_sys_ioctl+0xf4/0x140 fs/ioctl.c:583
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xa4/0xfa0 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff888125711780 (size 128):
  comm "syz.0.19", pid 6092, jiffies 4294942957
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace (crc f5a89fc0):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4983 [inline]
    slab_alloc_node mm/slub.c:5288 [inline]
    __kmalloc_cache_noprof+0x3a6/0x5b0 mm/slub.c:5766
    kmalloc_noprof include/linux/slab.h:957 [inline]
    kzalloc_noprof include/linux/slab.h:1094 [inline]
    create_vblank_event drivers/gpu/drm/drm_atomic_uapi.c:931 [inline]
    prepare_signaling drivers/gpu/drm/drm_atomic_uapi.c:1221 [inline]
    drm_mode_atomic_ioctl+0x924/0x13d0 drivers/gpu/drm/drm_atomic_uapi.c:1529
    drm_ioctl_kernel+0x125/0x1f0 drivers/gpu/drm/drm_ioctl.c:797
    drm_ioctl+0x371/0x6b0 drivers/gpu/drm/drm_ioctl.c:894
    vfs_ioctl fs/ioctl.c:51 [inline]
    __do_sys_ioctl fs/ioctl.c:597 [inline]
    __se_sys_ioctl fs/ioctl.c:583 [inline]
    __x64_sys_ioctl+0xf4/0x140 fs/ioctl.c:583
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xa4/0xfa0 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff888125711700 (size 128):
  comm "syz.0.20", pid 6121, jiffies 4294943534
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace (crc f5a89fc0):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4983 [inline]
    slab_alloc_node mm/slub.c:5288 [inline]
    __kmalloc_cache_noprof+0x3a6/0x5b0 mm/slub.c:5766
    kmalloc_noprof include/linux/slab.h:957 [inline]
    kzalloc_noprof include/linux/slab.h:1094 [inline]
    create_vblank_event drivers/gpu/drm/drm_atomic_uapi.c:931 [inline]
    prepare_signaling drivers/gpu/drm/drm_atomic_uapi.c:1221 [inline]
    drm_mode_atomic_ioctl+0x924/0x13d0 drivers/gpu/drm/drm_atomic_uapi.c:1529
    drm_ioctl_kernel+0x125/0x1f0 drivers/gpu/drm/drm_ioctl.c:797
    drm_ioctl+0x371/0x6b0 drivers/gpu/drm/drm_ioctl.c:894
    vfs_ioctl fs/ioctl.c:51 [inline]
    __do_sys_ioctl fs/ioctl.c:597 [inline]
    __se_sys_ioctl fs/ioctl.c:583 [inline]
    __x64_sys_ioctl+0xf4/0x140 fs/ioctl.c:583
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xa4/0xfa0 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff8881266fab80 (size 128):
  comm "syz.0.21", pid 6122, jiffies 4294943536
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace (crc f5a89fc0):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4983 [inline]
    slab_alloc_node mm/slub.c:5288 [inline]
    __kmalloc_cache_noprof+0x3a6/0x5b0 mm/slub.c:5766
    kmalloc_noprof include/linux/slab.h:957 [inline]
    kzalloc_noprof include/linux/slab.h:1094 [inline]
    create_vblank_event drivers/gpu/drm/drm_atomic_uapi.c:931 [inline]
    prepare_signaling drivers/gpu/drm/drm_atomic_uapi.c:1221 [inline]
    drm_mode_atomic_ioctl+0x924/0x13d0 drivers/gpu/drm/drm_atomic_uapi.c:1529
    drm_ioctl_kernel+0x125/0x1f0 drivers/gpu/drm/drm_ioctl.c:797
    drm_ioctl+0x371/0x6b0 drivers/gpu/drm/drm_ioctl.c:894
    vfs_ioctl fs/ioctl.c:51 [inline]
    __do_sys_ioctl fs/ioctl.c:597 [inline]
    __se_sys_ioctl fs/ioctl.c:583 [inline]
    __x64_sys_ioctl+0xf4/0x140 fs/ioctl.c:583
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xa4/0xfa0 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

connection error: failed to recv *flatrpc.ExecutorMessageRawT: EOF

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/30 14:15 upstream 6bda50f4333f d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in drm_mode_atomic_ioctl
* Struck through repros no longer work on HEAD.