WARNING in free_conf
syzbot
syzbotHello,
syzbot found the following issue on:
HEAD commit: 5dd1818b15d9 Merge tag 'for-next-keys-v7.3-rc4' of git://g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1074e7f9580000 kernel config: https://syzkaller.appspot.com/x/.config?x=c3be6e434b07ebb6 dashboard link: https://syzkaller.appspot.com/bug?extid=6a132745caefcf42cb0d compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/ecb73b95440b/disk-5dd1818b.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e90eba3671c9/vmlinux-5dd1818b.xz
kernel image: https://storage.googleapis.com/syzbot-assets/ea031fa7db3f/bzImage-5dd1818b.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
-----------------------------------------------------------------------------
Object 0xffff88808b840000 @offset=0
Object 0xffff88808b8404d8 @offset=1240
Object 0xffff88808b8409b0 @offset=2480
Object 0xffff88808b840e88 @offset=3720
Slab 0xffffea00022e1000 objects=13 used=4 fp=0xffff88808b841360 flags=0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) Disabling lock debugging due to kernel taint
------------[ cut here ]------------ 1 WARNING: mm/slub.c:1268 at __slab_err+0x15/0x20 mm/slub.c:1268, CPU#0: syz.5.636/7760 Modules linked in: CPU: 0 UID: 0 PID: 7760 Comm: syz.5.636 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2026 RIP: 0010:__slab_err+0x15/0x20 mm/slub.c:1268 Code: 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 e8 2b 00 00 00 bf 05 00 00 00 be 01 00 00 00 e8 7c 0f 5f 00 90 <0f> 0b 90 e9 5e 04 e8 ff cc 66 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000527f840 EFLAGS: 00010083 RAX: ffffffff81874cba RBX: ffff88801f7fb280 RCX: 0000000000080000 RDX: ffffc9000ddd2000 RSI: 000000000000eef7 RDI: 000000000000eef8 RBP: 0000000000000000 R08: ffffffff939990a7 R09: 1ffffffff2733214 R10: dffffc0000000000 R11: fffffbfff2733215 R12: ffffea00022e8c10 R13: ffffea00022e1000 R14: ffffc9000527f858 R15: ffff88805445e3c0 FS: 00007f088e6396c0(0000) GS:ffff888124cce000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffca4261db0 CR3: 000000003121e000 CR4: 0000000000350ef0 Call Trace: <TASK> free_partial mm/slub.c:8122 [inline] __kmem_cache_shutdown+0x1a5/0x2b0 mm/slub.c:8165 kmem_cache_destroy+0x9d/0x180 mm/slab_common.c:576 shrink_stripes drivers/md/raid5.c:2719 [inline] free_conf+0x1fc/0x5d0 drivers/md/raid5.c:7553 setup_conf+0x1720/0x2ad0 drivers/md/raid5.c:7885 raid5_takeover_raid1 drivers/md/raid5.c:8934 [inline] raid5_takeover+0x641/0x8d0 drivers/md/raid5.c:9045 level_store+0x83b/0x1d10 drivers/md/md.c:4134 md_attr_store+0x3b7/0x640 drivers/md/md.c:6158 kernfs_fop_write_iter+0x3a4/0x540 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f088d79e159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f088e639028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f088da25fa0 RCX: 00007f088d79e159 RDX: 0000000000000005 RSI: 0000200000000300 RDI: 0000000000000004 RBP: 00007f088d83506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f088da26038 R14: 00007f088da25fa0 R15: 00007ffc30f7c868 </TASK>
---
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 [email protected].
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
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
syzbot
syzbotsyzbot has found a reproducer for the following issue on:
syzbot has found a reproducer for the following issue on:
HEAD commit: 165768bb7026 Merge tag 'firewire-fixes-7.3-rc5' of git://g.. git tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git console output: https://syzkaller.appspot.com/x/log.txt?x=15160205580000 kernel config: https://syzkaller.appspot.com/x/.config?x=9d4242cb1c54cdf7 dashboard link: https://syzkaller.appspot.com/bug?extid=6a132745caefcf42cb0d compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1039d205580000
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Object 0xffff8880541a09b0 @offset=2480
Object 0xffff8880541a0e88 @offset=3720
Object 0xffff8880541a1360 @offset=4960
Object 0xffff8880541a1838 @offset=6200
Object 0xffff8880541a1d10 @offset=7440
Object 0xffff8880541a21e8 @offset=8680
Object 0xffff8880541a26c0 @offset=9920
Slab 0xffffea0001506800 objects=13 used=7 fp=0xffff8880541a0000 flags=0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) Disabling lock debugging due to kernel taint
------------[ cut here ]------------ 1 WARNING: mm/slub.c:1268 at __slab_err+0x15/0x20 mm/slub.c:1268, CPU#1: syz-executor938/6015 Modules linked in: CPU: 1 UID: 0 PID: 6015 Comm: syz-executor938 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/05/2026 RIP: 0010:__slab_err+0x15/0x20 mm/slub.c:1268 Code: 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 e8 2b 00 00 00 bf 05 00 00 00 be 01 00 00 00 e8 9c 0f 5f 00 90 <0f> 0b 90 e9 5e 04 e8 ff cc 66 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc900036ff840 EFLAGS: 00010093 RAX: ffffffff81874cda RBX: ffff888028866280 RCX: ffff888030b89f40 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff9399d0a7 R09: 1ffffffff2733a14 R10: dffffc0000000000 R11: fffffbfff2733a15 R12: ffffea000158e510 R13: ffffea0001506800 R14: ffffc900036ff858 R15: ffff8880333cf3c0 FS: 000055555e3d3400(0000) GS:ffff888124dca000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2017871ac0 CR3: 000000007c35a000 CR4: 0000000000350ef0 Call Trace: <TASK> free_partial mm/slub.c:8122 [inline] __kmem_cache_shutdown+0x1a5/0x2b0 mm/slub.c:8165 kmem_cache_destroy+0x9d/0x180 mm/slab_common.c:576 shrink_stripes drivers/md/raid5.c:2719 [inline] free_conf+0x1fc/0x5d0 drivers/md/raid5.c:7553 setup_conf+0x1720/0x2ad0 drivers/md/raid5.c:7885 raid5_takeover_raid1 drivers/md/raid5.c:8934 [inline] raid5_takeover+0x641/0x8d0 drivers/md/raid5.c:9045 level_store+0x83b/0x1d10 drivers/md/md.c:4134 md_attr_store+0x3b7/0x640 drivers/md/md.c:6158 kernfs_fop_write_iter+0x3a4/0x540 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fadcdd27cb7 Code: 48 89 fa 4c 89 df e8 98 1d 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffef54c24b0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000055555e3d3400 RCX: 00007fadcdd27cb7 RDX: 0000000000000005 RSI: 00007fadcdd610f1 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000002 R13: 00000000000000c8 R14: 00007ffef54c2500 R15: 00007ffef54c2520 </TASK>
---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
syzbot
syzbotForwarded: [PATCH] Test for a forgotten shrink_stripes in the grow_stripes.
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: [PATCH] Test for a forgotten shrink_stripes in the grow_stripes.
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 6812ce4e4379
--- drivers/md/raid5.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/md/raid5.c +5 -2
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0-or-later +/// SPDX-License-Identifier: GPL-2.0-or-later /* * raid5.c : Multiple Devices driver for Linux * Copyright (C) 1996, 1997 Ingo Molnar, Miguel de Icaza, Gadi Oxman
@@ -2441,9 +2441,12 @@ static int grow_stripes(struct r5conf *conf, int num) conf->pool_size = devs;while (num--)if (!grow_one_stripe (conf,GFP_KERNEL )) -return 1 ; + goto err;return 0 ; +err: +shrink_stripes (conf); +return 1 ; }/**
Signature · 1 line
2.47.3