Re: ext4 online resize -> EXT4-fs error (device loop0) in ext4_update_backup_sb:174: Filesystem failed CRC

From: Theodore Ts'o
Date: Thu Oct 27 2022 - 23:59:51 EST


On Wed, Oct 26, 2022 at 07:49:56PM +0000, Unterwurzacher, Jakob wrote:
>
> it looks like I am hitting a similar issue as reported by Borislav Petkov
> in April 2022 ( https://lore.kernel.org/lkml/YmqOqGKajOOx90ZY@xxxxxxx/ ).
>
> I'm on kernel 6.0.5 and see this on arm64 as well as x86_64.
> I have a 100% reproducer using a loop mount, here it is:
>
> truncate -s 16g ext4.img
> mkfs.ext4 ext4.img 500m
> mkdir ext4.mnt
> mount ext4.img ext4.mnt
> resize2fs ext4.img

Thanks for the reproducer! The following patch should fix things.

- Ted