* [syzbot] [raid?] WARNING in mempool_init_node (2)
@ 2026-12-06 11:03 syzbot
0 siblings, 0 replies; only message in thread
From: syzbot @ 2026-12-06 11:03 UTC (permalink / raw)
To: ahuang12, colyli, linux-kernel, linux-raid, magiclinan, song,
songliubraving, syzkaller-bugs, xiao, xni, yukuai
Hello,
syzbot found the following issue on:
HEAD commit: 9c9253b2eda8 Merge branch 'for-next/core' into for-kernelci
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci
console output: https://syzkaller.appspot.com/x/log.txt?x=15a5d089580000
kernel config: https://syzkaller.appspot.com/x/.config?x=8a2c451d0965145f
dashboard link: https://syzkaller.appspot.com/bug?extid=0b6aa84041fda6dffa9d
compiler: Debian clang version 22.1.8 (1~deb13u5), Debian LLD 22.1.8
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14b1f5d9580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14ec5553580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e592b7e2107f/disk-9c9253b2.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/194ce61e5e54/vmlinux-9c9253b2.xz
kernel image: https://storage.googleapis.com/syzbot-assets/17c20f101264/Image-9c9253b2.gz.xz
The issue was bisected by AI to:
commit c2968285925adb97b9aa4ede94c1f1ab61ce0925
Author: Xiao Ni <xni@redhat.com>
Date: Thu Feb 4 07:50:44 2021 +0000
md/raid10: extend r10bio devs to raid disks
reasoning: https://syzkaller.appspot.com/ai_job?id=c9985a58-b9da-45cc-95bc-744e4bb9e600
AI-generated root cause summary:
md_set_array_info() and sysfs raid_disks_store() accept arbitrary values for
mddev->raid_disks without enforcing an upper bound (for non-persistent arrays
mddev->max_disks is 0 and is not checked before pers->run()). During RAID10
initialization in setup_conf(), allocating conf->mirrors (24 bytes per disk)
succeeds for raid_disks values up to 174,762 (<= KMALLOC_MAX_SIZE of 4 MiB),
after which create_r10bio_pool() calls mempool_create_kmalloc_pool() with
calc_r10bio_size(raid_disks) = 72 + raid_disks * 32 bytes. For raid_disks >=
131,071 (such as 131,075, yielding 0x4000a8 bytes as seen in register x19), the
per-element size exceeds KMALLOC_MAX_SIZE, triggering WARN_ON_ONCE_GFP(size >
KMALLOC_MAX_SIZE, flags) in ___kmalloc_large_node().
full analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=0b6aa84041fda6dffa9d
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+0b6aa84041fda6dffa9d@syzkaller.appspotmail.com
The bisection result may be wrong.
If you agree with it, please also add:
Fixes: c2968285925a ("md/raid10: extend r10bio devs to raid disks")
md: async del_gendisk mode will be removed in future, please upgrade to mdadm-4.5+
block device autoloading is deprecated and will be removed.
------------[ cut here ]------------
WARNING: mm/slub.c:5459 at ___kmalloc_large_node+0x15c/0x194 mm/slub.c:5459, CPU#0: syz.0.17/4961
Modules linked in:
CPU: 0 UID: 0 PID: 4961 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
pstate: 23400005 (nzCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--)
pc : ___kmalloc_large_node+0x15c/0x194 mm/slub.c:5459
lr : __kmalloc_large_node_noprof+0x2c/0x8c mm/slub.c:5502
sp : ffff8000952d7390
x29: ffff8000952d7390 x28: 1fffe0001c24c808 x27: dfff800000000000
x26: ffff8000809a8e9c x25: 1fffe0001c24c80a x24: ffff0000e1264040
x23: 0000000000000100 x22: 00000000ffffffff x21: 0000000000000cc0
x20: 0000000000000cc0 x19: 00000000004000a8 x18: ffff80012359d000
x17: ffff0001ace4d3c7 x16: ffff0000ccc68014 x15: ffff800080d65820
x14: 0000000000000001 x13: 0000000000000001 x12: 0000000000000003
x11: 0000000000000000 x10: 0000000000000003 x9 : 0000000000000001
x8 : ffff80008af8d000 x7 : 0000000000000000 x6 : ffff800080166ad0
x5 : 00000000ffffffff x4 : 0000000000000cc0 x3 : ffff8000809a7204
x2 : 00000000ffffffff x1 : 0000000000000cc0 x0 : 0000000000000000
Call trace:
___kmalloc_large_node+0x15c/0x194 mm/slub.c:5459 (P)
__kmalloc_large_node_noprof+0x2c/0x8c mm/slub.c:5502
__do_kmalloc_node mm/slub.c:5519 [inline]
__kmalloc_noprof+0x3f0/0x6c8 mm/slub.c:5556
_kmalloc_noprof include/linux/slab.h:995 [inline]
mempool_kmalloc+0x28/0x38 mm/mempool.c:746
mempool_init_node+0x1c0/0x484 mm/mempool.c:272
mempool_create_node_noprof+0xc8/0x154 mm/mempool.c:336
create_r10bio_pool drivers/md/raid10.c:115 [inline]
setup_conf+0x1f8/0x820 drivers/md/raid10.c:3831
raid10_run+0x16c/0x1300 drivers/md/raid10.c:3920
md_run+0xb10/0x19e8 drivers/md/md.c:6808
do_md_run+0x4c/0x4e4 drivers/md/md.c:6909
md_ioctl+0x1c08/0x23e4 drivers/md/md.c:8541
blkdev_ioctl+0x574/0x904 block/ioctl.c:795
vfs_ioctl fs/ioctl.c:52 [inline]
__do_sys_ioctl fs/ioctl.c:598 [inline]
__se_sys_ioctl fs/ioctl.c:584 [inline]
__arm64_sys_ioctl+0x154/0x1cc fs/ioctl.c:584
__invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49
el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121
do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140
el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:797
el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:816
el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606
irq event stamp: 4304
hardirqs last enabled at (4303): [<ffff8000869b3a10>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline]
hardirqs last enabled at (4303): [<ffff8000869b3a10>] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:221
hardirqs last disabled at (4304): [<ffff80008698d5e0>] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:484
softirqs last enabled at (4226): [<ffff8000801383b8>] local_bh_enable include/linux/bottom_half.h:33 [inline]
softirqs last enabled at (4226): [<ffff8000801383b8>] put_cpu_fpsimd_context arch/arm64/kernel/fpsimd.c:251 [inline]
softirqs last enabled at (4226): [<ffff8000801383b8>] do_sve_acc+0x3ac/0x56c arch/arm64/kernel/fpsimd.c:1332
softirqs last disabled at (4224): [<ffff800080138110>] local_bh_disable include/linux/bottom_half.h:20 [inline]
softirqs last disabled at (4224): [<ffff800080138110>] get_cpu_fpsimd_context arch/arm64/kernel/fpsimd.c:234 [inline]
softirqs last disabled at (4224): [<ffff800080138110>] do_sve_acc+0x104/0x56c arch/arm64/kernel/fpsimd.c:1307
---[ end trace 0000000000000000 ]---
md: pers->run() failed ...
---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
For information about bisection process see: https://goo.gl/tpsmEJ#ai-bisection
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-06 11:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-06 11:03 [syzbot] [raid?] WARNING in mempool_init_node (2) syzbot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®