This is a note to let you know that I've just added the patch titled md: fix update super 1.0 on rdev size change to the 5.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: md-fix-update-super-1.0-on-rdev-size-change.patch and it can be found in the queue-5.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 55df1ce0d4e086e05a8ab20619c73c729350f965 Mon Sep 17 00:00:00 2001 From: Markus Hochholdinger <markus@xxxxxxxxxxxxxxxxx> Date: Tue, 16 Nov 2021 10:21:35 +0000 Subject: md: fix update super 1.0 on rdev size change From: Markus Hochholdinger <markus@xxxxxxxxxxxxxxxxx> commit 55df1ce0d4e086e05a8ab20619c73c729350f965 upstream. The superblock of version 1.0 doesn't get moved to the new position on a device size change. This leads to a rdev without a superblock on a known position, the raid can't be re-assembled. The line was removed by mistake and is re-added by this patch. Fixes: d9c0fa509eaf ("md: fix max sectors calculation for super 1.0") Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Markus Hochholdinger <markus@xxxxxxxxxxxxxxxxx> Reviewed-by: Xiao Ni <xni@xxxxxxxxxx> Signed-off-by: Song Liu <songliubraving@xxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/md/md.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -2252,6 +2252,7 @@ super_1_rdev_size_change(struct md_rdev if (!num_sectors || num_sectors > max_sectors) num_sectors = max_sectors; + rdev->sb_start = sb_start; } sb = page_address(rdev->sb_page); sb->data_size = cpu_to_le64(num_sectors); Patches currently in stable-queue which might be from markus@xxxxxxxxxxxxxxxxx are queue-5.10/md-fix-update-super-1.0-on-rdev-size-change.patch