Re: [PATCH] md/raid10: Prevent data corruption after a rejected backwards reshape
From: yu kuai
Date: Tue Nov 10 2026 - 21:00:56 EST
在 2026/11/8 16:47, Chris Down 写道:
> A rejected backwards RAID10 reshape can leave the array using the
> requested geometry because raid10_start_reshape() updates conf->geo
> before checking whether the new geometry can hold the current array
> size. If the check fails, we return -EINVAL with the new geometry still
> in place. Subsequent I/O then uses a layout the data hasn't been moved
> to, so reads can return the wrong data and writes can silently corrupt
> the array.
>
> To fix this, let's take the existing abort path to restore the old
> geometry.
>
> Fixes: 3ea7daa5d7fd ("md/raid10: add reshape support")
> Cc:<stable@xxxxxxxxxxxxxxx>
> Signed-off-by: Chris Down<chris@xxxxxxxxxxxxxx>
> ---
> drivers/md/raid10.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Applied
--
Thanks,
Kuai