mount of compressed erofs shows corrupted data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-signed-hwe-6.2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
In some cases, file contents are corrupted if I mount a lz4 compressed erofs image file.
How to reproduce:
1. Download the attached file (pip-22.
2. `mkdir source && mv pip-22.
3. `mkfs.erofs uncomp.erofs source/`
4. `mkfs.erofs -z lz4 comp.erofs source/`
5. `mkdir mount_uncomp && mount uncomp.erofs mount_uncomp/`
6. `mkdir mount_comp && mount comp.erofs mount_comp/`
7. compare the hashes of the file for each mountpoint.
If I run the above code, I found the result
- md5sum source/
- md5sum mount_uncomp/
- md5sum mount_comp/
And the diff of their hexdump shows 4 bytes mismatch.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-
ProcVersionSign
Uname: Linux 6.2.0-35-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CloudArchitecture: x86_64
CloudID: none
CloudName: none
CloudPlatform: none
CloudSubPlatform: config
Date: Mon Oct 30 14:04:37 2023
InstallationDate: Installed on 2022-11-08 (356 days ago)
InstallationMedia: Ubuntu-Server 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809)
ProcEnviron:
TERM=screen
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: linux-signed-
UpgradeStatus: No upgrade log present (probably fresh install)