ACK: [Patch 0/2] [F/I linux-azure] Xfstest failure with sparse_super2 mount option

Marcelo Henrique Cerri marcelo.cerri at canonical.com
Mon Apr 25 18:07:11 UTC 2022


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512


Acked-by: Marcelo Henrique Cerri <marcelo.cerri at canonical.com>

On Mon, Apr 25 2022, Tim Gardner wrote:
> BugLink: https://bugs.launchpad.net/bugs/1970223
>
> SRU Justification
>
> [Impact]
>
> Microsoft has detected an Xfstest failure scenario. There might be fs corruption
> when resizing ext4 filesystems mounted with sparse_super2 option enabled.
>
> Fix: commit b1489186cc8391e0c1e342f9fbc3eedf6b944c61 ("ext4: add check to
> prevent attempting to resize an fs with sparse_super2")
>
> [Test Case]
> mkfs.ext4 -b 4096 -I 256 -J size=32 -E resize=$((256*1024*1024)) -O sparse_super2 ext4.img 65M truncate -s 30G ext4.img
> mount ext4.img /mnt
> python3 -c 'import fcntl, os, struct ; fd = os.open("/mnt",
> os.O_RDONLY | os.O_DIRECTORY) ; fcntl.ioctl(fd, 0x40086610,
> struct.pack("Q", 30 * 1024 * 1024 * 1024 // 4096), False) ;
> os.close(fd)'
> dmesg | tail
> e2fsck ext4.img
>
> [Where things could go wrong]
>
> The file system may erroneously not mount.
>
> [Other Info]
>
> SF: #00334996


- --
Regards,
Marcelo
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEExJjLjAfVL0XbfEr56e82LoessAkFAmJm41MACgkQ6e82Loes
sAktggv/Qe56Vjb6Ul+YKsEF3jqIML72ZirRuIGZvG6ufc96Tk0XitAmCQur+sC8
Db8w+fbga01tCBKfzxAgKJe8ypifbziZKnySDVrBN53A0eTFw476+PJDIy3MGrep
g4Q2XWEqM+8em/uDzL/OKoZFAmvR2Ycp5lA7xg8i0/L90hWbDmFDPmxT+Oj8hS+8
KpDfU+kMoEfGQDjXP0aeVyWtGRZuvJBtVM1ytU26Dw2oHDqRkHMApEkgy7pPYlUQ
olIr9Ds0KUVyVfkW93FAlj5LUYK9/d1DSdKOLVPt3WU5Jv1hrIY3b8k6SLSwYnc9
Nr4jmGEy9Fn4eyqwCXfyFpWLnbiLfFpUApdTissXt0sBxAQv2wxpqvodQ875Smuc
Z+yHuNGpVqzYDL6/d0yjeQmQl+abJEMkHOW0tjhIUV/Cc1pFiTHtU1uRKzhQv6m8
6x9JoialIfsi0tYD5X3c6JYEaCIlJP2RauUZDzqi0GIDCWuuUDYLTaOQUkHcfS4y
SCWrXg//
=mBti
-----END PGP SIGNATURE-----



More information about the kernel-team mailing list