Public bug reported:

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

** Affects: linux-azure (Ubuntu)
     Importance: Medium
     Assignee: Tim Gardner (timg-tpi)
         Status: Fix Released

** Affects: linux-azure (Ubuntu Focal)
     Importance: Medium
     Assignee: Tim Gardner (timg-tpi)
         Status: In Progress

** Affects: linux-azure (Ubuntu Impish)
     Importance: Medium
     Assignee: Tim Gardner (timg-tpi)
         Status: In Progress


** Tags: bot-stop-nagging

** Package changed: linux (Ubuntu) => linux-azure (Ubuntu)

** Changed in: linux-azure (Ubuntu)
   Importance: Undecided => Medium

** Changed in: linux-azure (Ubuntu)
       Status: New => In Progress

** Changed in: linux-azure (Ubuntu)
     Assignee: (unassigned) => Tim Gardner (timg-tpi)

** Tags added: bot-stop-nagging

** Also affects: linux-azure (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Also affects: linux-azure (Ubuntu Impish)
   Importance: Undecided
       Status: New

** Changed in: linux-azure (Ubuntu)
       Status: In Progress => Fix Released

** Changed in: linux-azure (Ubuntu Focal)
       Status: New => In Progress

** Changed in: linux-azure (Ubuntu Focal)
     Assignee: (unassigned) => Tim Gardner (timg-tpi)

** Changed in: linux-azure (Ubuntu Focal)
   Importance: Undecided => Medium

** Changed in: linux-azure (Ubuntu Impish)
   Importance: Undecided => Medium

** Changed in: linux-azure (Ubuntu Impish)
       Status: New => In Progress

** Changed in: linux-azure (Ubuntu Impish)
     Assignee: (unassigned) => Tim Gardner (timg-tpi)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1970223

Title:
  linux-azure: add check to prevent attempting to resize an fs with
  sparse_super2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1970223/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to