From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.231.200 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796555015; b=EEJrPuPsA9GZhqG1xlm64+NTzr+FWHS4unukZrCX3WiAUI/jncYHLJWiK9lHjWrHiY4b /VL+HiWaMvrz6n+lUYU0V8ELEffaQ2CrKPRChFj5sL2EpJBQcfs79tbmQ+ODmM8vDQ5mT 3me8b6v/EJQr7TwXWY8DkFPvUhF0neU3fn46WAPszW89bjofzfVNaTz1qqBT3TnC7sMCk 1AnIBfjCSPvIw6Rkpz6TlwpJHxTL+BAO7ad8s5tswF2rfDUhIcmXCPQ+G9YrOs4vKOLUi rKn6NRqFRO2kEBBNVm4LIvbG9DixvDvYOvogHbed92BxnF4s2fKS4jQoR8Q11JpApFQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796555015; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:MIME-Version:X-Received:Date: X-Google-Appengine-App-Id:X-Google-Appengine-App-Id-Alias:Message-ID: Subject:From:To:Content-Type; bh=V0CNb1hdyUUO/sQBInO1XMWk5JfqW8GvwjKW8//mHiM=; b=f8mr4zkP1rVFJ4gkZnasyj0Z+rpTMBJ0Bf63L9x4PzEKkbUVichSWxLeYCfMpxViks29 jP2pm8TJOdUL6sz4yKpKXvmGUQKf1/kwY7zBa6mR8IGu7rpRBiVC7FNEZyUkhmpjP2bZV wMBu/+QHBroITwhGzIC1WAd2MjGIIEul26PjNuDVdHli9aXUHSTWE5MhCGjOJv/Ien3kq IpxnPsoqYEynIXDi4a58M+RADS/6zBB1VHObfzKuEmIlJ4cIbJc5GP6Tv21lnqY2qtCja VN47ep7twkdhC2ol+rsm2CRKOzlmLjZx5EuWOi1YxmPgvGxj7jGibCiU/QLdDtXBV1w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.remote-ip=74.125.231.200 Received: from mail-oi2-f8.google.com (mail-oi2-f8.google.com [74.125.231.200]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1FA8606A31F for ; Sun, 6 Dec 2026 11:03:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B1FA8606A31F Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oi2-f8.google.com with SMTP id 5614622812f47-539edfadfa9so681881b6e.0 for ; Sun, 06 Dec 2026 03:03:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796555014; x=1797159814; h=content-type:to:from:subject:message-id:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=V0CNb1hdyUUO/sQBInO1XMWk5JfqW8GvwjKW8//mHiM=; b=mGFsqh3EY22pwTdi8kEwUvNB4qlINn8MwakJToxsvg2peSzd59SA6XplpZL8MSlJtg zz9NWxHfcSRAj/BwI4sbTNhU8TDzJ3p4B9nrLb3H22k5tDPqw7NXuta5+TDZs8M5tiSz 0CNeOCEvwHeFxjIVDBQyTxO/eKgsR6rY/PnZSuyDmBwjPnUKDKEUSPPa+o28RP+3ccAW UhsDISch28O+GNnOvD7UxB1QfK4qcLKvdho0Ea0+pGpbQ9Vdo7wrzfjGkMb1IrUnG6u3 wd9o90H+Ul2OCqxAqMLGdBiF9eb0GafkVXpXrCwZuso1OjPMaI3hWq6mbcknIHFpLEYR Zz2w== X-Forwarded-Encrypted: i=1; AL+hErG9hlIBjzZZGfm3HsO+vWPUXCY66dRrCwuVq8ciCaLABrPHN/Ep4ffkzrBR65LG6Mzq2LVDznYvqiZQ018=@vger.kernel.org X-Gm-Message-State: APuU4Z81n1l7SaLCxRrQQrr3DQ8HkGip2Plkm/Ui9NyfEdYo2ib6YMxg ZRQBKjums+r0hMhEqrgDwS6rMfHxdXQ6cv6HRLJbBtUfoLMcxSdspbWTsCTHZGBohX2bnfvpLur FMCZW5B585/rKwkpNXHcFV0w05KLgz24wtjjK/TPfhcyu9pAqtlulOKkZRnY= X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Received: by 2002:a05:6808:13c4:b0:57e:cf09:f756 with SMTP id 5614622812f47-57f207d8295mr6387422b6e.27.1796555013797; Sun, 06 Dec 2026 03:03:33 -0800 (PST) Date: Sun, 06 Dec 2026 03:03:33 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6b154105.7375a9b9.1d867b.1105.GAE@google.com> Subject: [syzbot] [raid?] WARNING in mempool_init_node (2) From: syzbot To: ahuang12@lenovo.com, colyli@suse.de, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, magiclinan@didiglobal.com, song@kernel.org, songliubraving@fb.com, syzkaller-bugs@googlegroups.com, xiao@kernel.org, xni@redhat.com, yukuai@fygo.io Content-Type: text/plain; charset="UTF-8" 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 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): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline] hardirqs last enabled at (4303): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:221 hardirqs last disabled at (4304): [] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:484 softirqs last enabled at (4226): [] local_bh_enable include/linux/bottom_half.h:33 [inline] softirqs last enabled at (4226): [] put_cpu_fpsimd_context arch/arm64/kernel/fpsimd.c:251 [inline] softirqs last enabled at (4226): [] do_sve_acc+0x3ac/0x56c arch/arm64/kernel/fpsimd.c:1332 softirqs last disabled at (4224): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last disabled at (4224): [] get_cpu_fpsimd_context arch/arm64/kernel/fpsimd.c:234 [inline] softirqs last disabled at (4224): [] 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