** Changed in: linux-azure (Ubuntu Focal) Status: In Progress => Fix Committed
** Changed in: linux-azure (Ubuntu Impish) Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux-azure in Ubuntu. https://bugs.launchpad.net/bugs/1970223 Title: linux-azure: add check to prevent attempting to resize an fs with sparse_super2 Status in linux-azure package in Ubuntu: Fix Released Status in linux-azure source package in Focal: Fix Committed Status in linux-azure source package in Impish: Fix Committed Bug description: 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1970223/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp