syzbot


memory leak in __kfree_rcu_sheaf

Status: upstream: reported syz repro on 2026/02/09 18:26
Subsystems: mm f2fs exfat
[Documentation on labels]
Reported-by: syzbot+cae7809e9dc1459e4e63@syzkaller.appspotmail.com
First crash: 102d, last: 102d
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
8c567188-2539-4f2c-a29d-ba95138568c0 assessment-security 💥 memory leak in __kfree_rcu_sheaf 2026/05/14 10:56 2026/05/14 10:56 2026/05/14 10:57 6ccb967e465e832a7bfd7a116ad00d52a0923a5d failed to run ["git" "pull" "origin" "HEAD" "--depth=1" "--allow-unrelated-histories"]: exit status 128 From /app/workdir/repo/linux * branch HEAD -> FETCH_HEAD Updating files: 23% (22048/92197) Updating files: 24% (22128/92197) Updating files: 25% (23050/92197) Updating files: 26% (23972/92197) Updating files: 27% (24894/92197) Updating files: 28% (25816/92197) Updating files: 29% (26738/92197) Updating files: 30% (27660/92197) Updating files: 31% (28582/92197) Updating files: 32% (29504/92197) Updating files: 33% (30426/92197) Updating files: 33% (30489/92197) Updating files: 34% (31347/92197) Updating files: 35% (32269/92197) Updating files: 36% (33191/92197) Updating files: 37% (34113/92197) error: unable to write file drivers/gpio/gpio-max7301.c error: unable to write file drivers/gpio/gpio-max730x.c error: unable to write file drivers/gpio/gpio-max732x.c error: unable to write file drivers/gpio/gpio-max7360.c error: unable to write file drivers/gpio/gpio-max77620.c error: unable to write file drivers/gpio/gpio-max77650.c error: unable to write file drivers/gpio/gpio-max77759.c error: unable to write file drivers/gpio/gpio-mb86s7x.c error: unable to write file drivers/gpio/gpio-mc33880.c error: unable to write file drivers/gpio/gpio-menz127.c error: unable to write file drivers/gpio/gpio-merrifield.c error: unable to write file drivers/gpio/gpio-ml-ioh.c error: unable to write file drivers/gpio/gpio-mlxbf.c error: unable to write file drivers/gpio/gpio-mlxbf2.c error: unable to write file drivers/gpio/gpio-mlxbf3.c error: unable to write file drivers/gpio/gpio-mm-lantiq.c error: unable to write file drivers/gpio/gpio-mmio.c error: unable to write file drivers/gpio/gpio-mockup.c error: unable to write file drivers/gpio/gpio-moxtet.c error: unable to write file drivers/gpio/gpio-mpc5200.c error: unable to write file drivers/gpio/gpio-mpc8xxx.c error: unable to write file drivers/gpio/gpio-mpfs.c error: unable to write file drivers/gpio/gpio-mpsse.c error: unable to write file drivers/gpio/gpio-msc313.c error: unable to write file drivers/gpio/gpio-mt7621.c error: unable to write file drivers/gpio/gpio-mvebu.c error: unable to write file drivers/gpio/gpio-mxc.c error: unable to write file drivers/gpio/gpio-mxs.c error: unable to write file drivers/gpio/gpio-nct6694.c error: unable to write file drivers/gpio/gpio-nomadik.c error: unable to write file drivers/gpio/gpio-npcm-sgpio.c error: unable to write file drivers/gpio/gpio-octeon.c error: unable to write file drivers/gpio/gpio-omap.c error: unable to write file drivers/gpio/gpio-palmas.c error: unable to write file drivers/gpio/gpio-pca953x.c error: unable to write file drivers/gpio/gpio-pca9570.c error: unable to write file drivers/gpio/gpio-pcf857x.c error: unable to write file drivers/gpio/gpio-pch.c error: unable to write file drivers/gpio/gpio-pci-idio-16.c error: unable to write file drivers/gpio/gpio-pcie-idio-24.c error: unable to write file drivers/gpio/gpio-pisosr.c error: unable to write file drivers/gpio/gpio-pl061.c error: unable to write file drivers/gpio/gpio-pmic-eic-sprd.c error: unable to write file drivers/gpio/gpio-pxa.c error: unable to write file drivers/gpio/gpio-qixis-fpga.c error: unable to write file drivers/gpio/gpio-raspberrypi-exp.c error: unable to write file drivers/gpio/gpio-rc5t583.c error: unable to write file drivers/gpio/gpio-rcar.c error: unable to write file drivers/gpio/gpio-rda.c error: unable to write file drivers/gpio/gpio-rdc321x.c error: unable to write file drivers/gpio/gpio-realtek-otto.c error: unable to write file drivers/gpio/gpio-reg.c error: unable to write file drivers/gpio/gpio-regmap.c error: unable to write file drivers/gpio/gpio-rockchip.c error: unable to write file drivers/gpio/gpio-rtd.c error: unable to write file drivers/gpio/gpio-sa1100.c error: unable to write file drivers/gpio/gpio-sama5d2-piobu.c error: unable to write file drivers/gpio/gpio-sch.c error: unable to write file drivers/gpio/gpio-sch311x.c error: unable to write file drivers/gpio/gpio-shared-proxy.c err
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] [f2fs?] [exfat?] memory leak in __kfree_rcu_sheaf 28 (46) 2026/05/04 21:12
Last patch testing requests (19)
Created Duration User Patch Repo Result
2026/05/04 20:26 21m dxdt@dev.snart.me patch upstream report log
2026/05/04 20:17 31m dxdt@dev.snart.me patch upstream report log
2026/05/04 05:28 22m retest repro upstream report log
2026/05/03 06:05 47m dxdt@dev.snart.me patch upstream OK log
2026/05/03 06:00 41m dxdt@dev.snart.me patch upstream report log
2026/05/02 10:17 27m dxdt@dev.snart.me patch upstream report log
2026/03/20 00:07 16m harry.yoo@oracle.com patch upstream report log
2026/03/18 04:12 49m harry.yoo@oracle.com patch upstream report log
2026/03/18 02:44 19m harry.yoo@oracle.com patch upstream report log
2026/03/11 10:49 12m wangqing7171@gmail.com patch upstream report log
2026/03/11 09:57 18m wangqing7171@gmail.com patch upstream error
2026/03/10 08:11 1h27m harry.yoo@oracle.com patch upstream report log
2026/03/10 06:11 16m harry.yoo@oracle.com patch upstream report log
2026/03/10 03:40 12m harry.yoo@oracle.com patch upstream report log
2026/03/09 10:47 15m harry.yoo@oracle.com patch upstream report log
2026/03/08 11:04 43m catalin.marinas@arm.com patch upstream report log
2026/03/08 11:03 40m catalin.marinas@arm.com patch upstream report log
2026/03/02 03:41 14m wangqing7171@gmail.com patch upstream report log
2026/02/22 12:55 13m retest repro upstream report log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888113218600 (size 512):
  comm "sed", pid 6046, jiffies 4294945902
  hex dump (first 32 bytes):
    00 8e 13 29 81 88 ff ff 00 12 86 27 81 88 ff ff  ...).......'....
    00 5a 04 00 81 88 ff ff 00 00 00 00 00 00 00 00  .Z..............
  backtrace (crc 49909e19):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4958 [inline]
    slab_alloc_node mm/slub.c:5263 [inline]
    __do_kmalloc_node mm/slub.c:5656 [inline]
    __kmalloc_noprof+0x465/0x680 mm/slub.c:5669
    kmalloc_noprof include/linux/slab.h:961 [inline]
    kzalloc_noprof include/linux/slab.h:1094 [inline]
    alloc_empty_sheaf+0x36/0x50 mm/slub.c:2618
    __kfree_rcu_sheaf+0x155/0x210 mm/slub.c:6304
    kfree_rcu_sheaf mm/slab_common.c:1631 [inline]
    kvfree_call_rcu+0x202/0x3d0 mm/slab_common.c:1981
    ma_free_rcu lib/maple_tree.c:208 [inline]
    ma_free_rcu+0x29/0x40 lib/maple_tree.c:205
    mas_free lib/maple_tree.c:1174 [inline]
    mas_replace_node lib/maple_tree.c:1581 [inline]
    mas_wr_node_store+0x5fc/0x730 lib/maple_tree.c:3553
    mas_wr_store_entry+0x4eb/0x760 lib/maple_tree.c:3764
    mas_store_prealloc+0x358/0x740 lib/maple_tree.c:5169
    vma_iter_store_overwrite mm/vma.h:544 [inline]
    commit_merge+0x28e/0x490 mm/vma.c:763
    vma_expand+0x264/0x460 mm/vma.c:1200
    vma_merge_new_range+0xe3/0x350 mm/vma.c:1099
    __mmap_region+0x54b/0x15b0 mm/vma.c:2747
    mmap_region+0xfb/0x1e0 mm/vma.c:2830
    do_mmap+0x7ac/0xb80 mm/mmap.c:558
    vm_mmap_pgoff+0x1a6/0x2d0 mm/util.c:581
    ksys_mmap_pgoff+0x233/0x2d0 mm/mmap.c:604

BUG: memory leak
unreferenced object 0xffff888127861200 (size 512):
  comm "udevd", pid 6236, jiffies 4294948784
  hex dump (first 32 bytes):
    00 86 21 13 81 88 ff ff 18 e0 05 00 81 88 ff ff  ..!.............
    00 5a 04 00 81 88 ff ff 00 00 00 00 00 00 00 00  .Z..............
  backtrace (crc 5b72581e):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4958 [inline]
    slab_alloc_node mm/slub.c:5263 [inline]
    __do_kmalloc_node mm/slub.c:5656 [inline]
    __kmalloc_noprof+0x465/0x680 mm/slub.c:5669
    kmalloc_noprof include/linux/slab.h:961 [inline]
    kzalloc_noprof include/linux/slab.h:1094 [inline]
    alloc_empty_sheaf+0x36/0x50 mm/slub.c:2618
    __kfree_rcu_sheaf+0x155/0x210 mm/slub.c:6304
    kfree_rcu_sheaf mm/slab_common.c:1631 [inline]
    kvfree_call_rcu+0x202/0x3d0 mm/slab_common.c:1981
    ma_free_rcu lib/maple_tree.c:208 [inline]
    ma_free_rcu+0x29/0x40 lib/maple_tree.c:205
    mas_topiary_node lib/maple_tree.c:2311 [inline]
    mas_topiary_node lib/maple_tree.c:2299 [inline]
    mas_topiary_replace+0xb0f/0x1400 lib/maple_tree.c:2410
    mas_wmb_replace lib/maple_tree.c:2433 [inline]
    mas_spanning_rebalance+0x14e1/0x24b0 lib/maple_tree.c:2738
    mas_wr_spanning_store+0x983/0x10d0 lib/maple_tree.c:3479
    mas_wr_store_entry+0x4d5/0x760 lib/maple_tree.c:3767
    mas_store_gfp+0x341/0x640 lib/maple_tree.c:5138
    vma_iter_clear_gfp include/linux/mm.h:1141 [inline]
    do_vmi_align_munmap+0x259/0x2d0 mm/vma.c:1574
    do_vmi_munmap+0x17c/0x280 mm/vma.c:1627
    __vm_munmap+0xec/0x200 mm/vma.c:3247
    __do_sys_munmap mm/mmap.c:1077 [inline]
    __se_sys_munmap mm/mmap.c:1074 [inline]
    __x64_sys_munmap+0x1f/0x30 mm/mmap.c:1074
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff88812c458000 (size 4480):
  comm "udevd", pid 5181, jiffies 4294950983
  hex dump (first 32 bytes):
    01 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00  ................
  backtrace (crc ad4af9e6):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4958 [inline]
    slab_alloc_node mm/slub.c:5263 [inline]
    kmem_cache_alloc_node_noprof+0x422/0x590 mm/slub.c:5315
    alloc_task_struct_node kernel/fork.c:184 [inline]
    dup_task_struct kernel/fork.c:915 [inline]
    copy_process+0x286/0x2870 kernel/fork.c:2052
    kernel_clone+0xac/0x6e0 kernel/fork.c:2651
    __do_sys_clone+0x7f/0xb0 kernel/fork.c:2792
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff8881274a1540 (size 184):
  comm "udevd", pid 5181, jiffies 4294950983
  hex dump (first 32 bytes):
    02 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 54e589bc):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4958 [inline]
    slab_alloc_node mm/slub.c:5263 [inline]
    kmem_cache_alloc_noprof+0x412/0x580 mm/slub.c:5270
    prepare_creds+0x22/0x600 kernel/cred.c:185
    copy_creds+0x44/0x290 kernel/cred.c:286
    copy_process+0x7a7/0x2870 kernel/fork.c:2086
    kernel_clone+0xac/0x6e0 kernel/fork.c:2651
    __do_sys_clone+0x7f/0xb0 kernel/fork.c:2792
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff888109639020 (size 32):
  comm "udevd", pid 5181, jiffies 4294950983
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    f8 52 86 00 81 88 ff ff 00 00 00 00 00 00 00 00  .R..............
  backtrace (crc 336e1c5f):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4958 [inline]
    slab_alloc_node mm/slub.c:5263 [inline]
    __do_kmalloc_node mm/slub.c:5656 [inline]
    __kmalloc_noprof+0x465/0x680 mm/slub.c:5669
    kmalloc_noprof include/linux/slab.h:961 [inline]
    kzalloc_noprof include/linux/slab.h:1094 [inline]
    lsm_blob_alloc+0x4d/0x80 security/security.c:192
    lsm_cred_alloc security/security.c:209 [inline]
    security_prepare_creds+0x2d/0x290 security/security.c:2763
    prepare_creds+0x395/0x600 kernel/cred.c:215
    copy_creds+0x44/0x290 kernel/cred.c:286
    copy_process+0x7a7/0x2870 kernel/fork.c:2086
    kernel_clone+0xac/0x6e0 kernel/fork.c:2651
    __do_sys_clone+0x7f/0xb0 kernel/fork.c:2792
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94
    entry_SYSCALL_64_after_hwframe+0x77/0x7f

BUG: memory leak
unreferenced object 0xffff888126fdbd80 (size 64):
  comm "udevd", pid 5181, jiffies 4294950983
  hex dump (first 32 bytes):
    c0 c3 4e 46 81 88 ff ff 00 00 00 00 00 00 00 00  ..NF............
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace (crc 508a43e4):
    kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
    slab_post_alloc_hook mm/slub.c:4958 [inline]
    slab_alloc_node mm/slub.c:5263 [inline]
    __do_kmalloc_node mm/slub.c:5656 [inline]
    __kmalloc_noprof+0x465/0x680 mm/slub.c:5669
    kmalloc_noprof include/linux/slab.h:961 [inline]
    kzalloc_noprof include/linux/slab.h:1094 [inline]
    lsm_blob_alloc+0x4d/0x80 security/security.c:192
    lsm_task_alloc security/security.c:244 [inline]
    security_task_alloc+0x2a/0x260 security/security.c:2682
    copy_process+0xf07/0x2870 kernel/fork.c:2203
    kernel_clone+0xac/0x6e0 kernel/fork.c:2651
    __do_sys_clone+0x7f/0xb0 kernel/fork.c:2792
    do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
    do_syscall_64+0xa4/0xf80 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
2026/02/08 12:45 upstream e7aa57247700 4c131dc4 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci-upstream-gce-leak memory leak in __kfree_rcu_sheaf
* Struck through repros no longer work on HEAD.