linux-azure: add check to prevent attempting to resize an fs with sparse_super2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-azure (Ubuntu) |
Fix Released
|
Medium
|
Tim Gardner | ||
Focal |
Fix Released
|
Medium
|
Tim Gardner | ||
Impish |
Fix Released
|
Medium
|
Tim Gardner |
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 b1489186cc8391e
[Test Case]
mkfs.ext4 -b 4096 -I 256 -J size=32 -E resize=
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
CVE References
affects: | linux (Ubuntu) → linux-azure (Ubuntu) |
Changed in linux-azure (Ubuntu): | |
assignee: | nobody → Tim Gardner (timg-tpi) |
importance: | Undecided → Medium |
status: | New → In Progress |
tags: | added: bot-stop-nagging |
Changed in linux-azure (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in linux-azure (Ubuntu Focal): | |
assignee: | nobody → Tim Gardner (timg-tpi) |
status: | New → In Progress |
importance: | Undecided → Medium |
Changed in linux-azure (Ubuntu Impish): | |
assignee: | nobody → Tim Gardner (timg-tpi) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in linux-azure (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux-azure (Ubuntu Impish): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done-focal verification-done-impish removed: verification-needed-focal verification-needed-impish |
Patch submitted: https:/ /lists. ubuntu. com/archives/ kernel- team/2022- April/129720. html