Re: [PATCH v2 2/2] md/raid10: Preserve recovery flags on reshape abort

From: yu kuai

Date: Sun Nov 29 2026 - 02:37:06 EST


在 2026/11/20 19:17, nenkov2004@xxxxxxxxx 写道:

> raid10_start_reshape() can fail before it updates the recovery flags.
> Its abort path clears the entire recovery word, including the
> MD_RECOVERY_FROZEN bit that dm-raid requires until raid_resume().
>
> Keep the recovery word intact when rolling back reshape setup. The
> preceding dm-raid change clears MD_RECOVERY_WAIT on failure in the
> caller that set it.
>
> Fixes: bb63a7019df9 ("md/raid10: resize bitmap when required during reshape.")
> Reported-by:syzbot+8b22a0459202f76b4096@xxxxxxxxxxxxxxxxxxxxxxxxx
> Closes:https://syzkaller.appspot.com/bug?extid=8b22a0459202f76b4096
> Signed-off-by: Hristos Nenkov<nenkov2004@xxxxxxxxx>
> ---
> drivers/md/raid10.c | 1 -
> 1 file changed, 1 deletion(-)

Applied patch 2.

--
Thanks,
Kuai