From: "Chen Cheng" <chencheng@fnnas.com>
To: "Mykola Marzhan" <mykola@meshstor.io>
Cc: <linux-raid@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
"Yu Kuai" <yukuai@fygo.io>, "Song Liu" <song@kernel.org>
Subject: Re: [PATCH v7 0/3] md/raid10: fix r10bio width mismatches across reshape
Date: Mon, 27 Jul 2026 11:07:53 +0800 [thread overview]
Message-ID: <ef9d9628-430d-48e5-8ee4-c02626c7995a@fnnas.com> (raw)
In-Reply-To: <20260726185640.2222714-1-mykola@meshstor.io>
在 2026/7/27 02:56, Mykola Marzhan 写道:
> Hi Cheng,
>
> Independent confirmation of the bug this series fixes, in case more
> evidence helps it land.
>
> While running a KASAN campaign against the llbitmap reshape v2 series
> (base 55b77337 — unrelated to your fix) every raid10 grow under IO hit
> both faces of the width mismatch:
>
> BUG: KASAN: slab-out-of-bounds in free_r10bio+0x97/0x110
> Read of size 8 at addr ffff888149044ec8 by task ksoftirqd/2/28
> free_r10bio+0x97/0x110
> raid10_end_write_request+0x260/0x500
> blk_update_request+0x18b/0x6b0
> Allocated by task 232:
> mempool_alloc_noprof+0x108/0x1d0
> raid10_make_request+0x18b/0x1100
>
> BUG: KASAN: slab-out-of-bounds in raid10_make_request+0x214/0x1100
> Write of size 192 at addr ffff88814da7aa48 by task fio/460
> __asan_memset+0x23/0x50
> raid10_make_request+0x214/0x1100
>
> (192 bytes = 6 x sizeof(struct r10dev) memset into a 4-disk
> allocation.)
>
> 456 reports across 5 grow cycles (n2, 4->6 disks, four fio randwrite
> jobs) on the plain base kernel. The mempool face matches your 2/3
> exactly: the 256 preallocated r10bios keep the old width, so any
> allocation that dips into the reserve after the grow is a guaranteed
> OOB write, not just a read.
>
> The storm is dense enough that raid10 grow under IO is not testable
> under KASAN at all right now — which is how we ran into it, and why
> we would like to see this land.
>
> We plan to run v7 through the same rig and will follow up with the
> result.
>
Hi Mykola:
Thanks to let me know that, and welcome to report the result and if you
have any idea, welcome to discuss.
thanks,
Cheng.
> Thanks,
> Mykola
next prev parent reply other threads:[~2026-07-27 3:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-11 10:03 [PATCH v6 " Chen Cheng
2026-07-11 10:03 ` [PATCH v7 1/3] md: suspend array when sync_action=reshape Chen Cheng
2026-07-11 10:03 ` [PATCH v7 2/3] md/raid10: resize r10bio_pool for reshape Chen Cheng
2026-07-11 10:03 ` [PATCH v7 3/3] md/raid10: free r10bio before ending master_bio in raid_end_bio_io() and raid_end_discard_bio() Chen Cheng
2026-07-11 17:43 ` yu kuai
2026-07-18 12:30 ` Chen Cheng
2026-07-26 18:56 ` [PATCH v7 0/3] md/raid10: fix r10bio width mismatches across reshape Mykola Marzhan
2026-07-27 3:07 ` Chen Cheng [this message]
2026-07-27 10:54 ` Mykola Marzhan
2026-07-27 11:17 ` Chen Cheng
2026-07-31 0:40 ` [PATCH v6 " yu kuai
2026-07-31 10:13 ` Mykola Marzhan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ef9d9628-430d-48e5-8ee4-c02626c7995a@fnnas.com \
--to=chencheng@fnnas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=mykola@meshstor.io \
--cc=song@kernel.org \
--cc=yukuai@fygo.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®