Regression in ext4 during online resize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Invalid
|
Undecided
|
Unassigned | ||
Kinetic |
Invalid
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Medium
|
Unassigned | ||
Kinetic |
Fix Released
|
High
|
Tim Gardner | ||
linux-aws (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Tim Gardner | ||
Kinetic |
Fix Released
|
High
|
Tim Gardner | ||
linux-azure (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Tim Gardner | ||
Kinetic |
Fix Released
|
High
|
Tim Gardner | ||
linux-gcp (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Issue
resize2fs utility is used to resize the filesystem and is idempotent in nature. But in the 5.15 kernel, successive execution of resize2fs is returning error.
Reproduction step (on AWS):
Create an AWS instance with AMI ami-056a67ea1b8
Format and mount the disk - sudo mkfs.ext4 /dev/xvdb, sudo mkdir -p /mnt/ssd0, sudo mount /dev/xvdb /mnt/ssd0
Increase the size of EBS volume.
Run sudo resize2fs /dev/xvdb multiple times.
The first execution returns -
$ sudo resize2fs /dev/xvdb
resize2fs 1.45.5 (07-Jan-2020)
Filesystem at /dev/xvdb is mounted on /mnt/ssd0; on-line resizing required
old_desc_blocks = 2, new_desc_blocks = 3
The filesystem on /dev/xvdb is now 5242880 (4k) blocks long.
The following execution returns -
$ sudo resize2fs /dev/xvdb
resize2fs 1.45.5 (07-Jan-2020)
The filesystem is already 5242880 (4k) blocks long. Nothing to do!
When you run the same step on the latest image ami-0a1d6d35189
The first execution returns -
$ sudo resize2fs /dev/xvdb
resize2fs 1.45.5 (07-Jan-2020)
Filesystem at /dev/xvdb is mounted on /mnt/ssd0; on-line resizing required
old_desc_blocks = 2, new_desc_blocks = 3
The filesystem on /dev/xvdb is now 5242880 (4k) blocks long.
The following execution returns
$ sudo resize2fs /dev/xvdb
resize2fs 1.45.5 (07-Jan-2020)
resize2fs: Superblock checksum does not match superblock while trying to open /dev/xvdb
Couldn't find valid filesystem superblock.
FIX:
CVE References
- 2022-20369
- 2022-2196
- 2022-3524
- 2022-3545
- 2022-3564
- 2022-3565
- 2022-3566
- 2022-3567
- 2022-3594
- 2022-3621
- 2022-3643
- 2022-41218
- 2022-4139
- 2022-42896
- 2022-4378
- 2022-4382
- 2022-43945
- 2022-45934
- 2022-47520
- 2022-47929
- 2023-0045
- 2023-0179
- 2023-0266
- 2023-0461
- 2023-0468
- 2023-0469
- 2023-1032
- 2023-1281
- 2023-23559
- 2023-26545
no longer affects: | linux-oracle (Ubuntu) |
no longer affects: | linux-oracle (Ubuntu Jammy) |
no longer affects: | linux-aws (Ubuntu) |
no longer affects: | linux-aws (Ubuntu Jammy) |
Changed in linux (Ubuntu Jammy): | |
status: | Incomplete → In Progress |
importance: | Undecided → Medium |
Changed in linux (Ubuntu): | |
status: | Incomplete → Invalid |
Changed in linux (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
Changed in linux-gcp (Ubuntu Jammy): | |
status: | New → Fix Committed |
importance: | Undecided → High |
Changed in linux-gcp (Ubuntu): | |
status: | New → Invalid |
Changed in linux-aws (Ubuntu Kinetic): | |
status: | In Progress → Fix Committed |
Changed in linux-azure (Ubuntu Kinetic): | |
status: | In Progress → Fix Committed |
Changed in linux-gcp (Ubuntu Kinetic): | |
status: | New → Fix Committed |
Changed in linux (Ubuntu Kinetic): | |
status: | In Progress → Fix Committed |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 2003816
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.