kernel 4.15.0-44 cannot mount ext4 fs with meta_bg enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Stefan Bader |
Bug Description
Starting with kernel 4.15.0-44 ext4 filesystem with meta_bg feature enabled can no longer be mounted.
Steps to reproduce:
- create two empty file and setup loopback devices on these files
dd if=/dev/zero of=/loop1 bs=1M count=50
losetup /dev/loop1 /loop1
dd if=/dev/zero of=/loop2 bs=1M count=50
losetup /dev/loop2 /loop2
- create a ext4 fs with meta_bg enabled on loop1:
mkfs.ext4 -O ^resize_
- create a ext4 fs without any options on loop2:
mkfs.ext4 /dev/loop2
- try to mount the filesystems
mkdir /mnt/loop1
mkdir /mnt/loop2
mount /dev/loop1 /mnt/loop1
mount /dev/loop1 /mnt/loop2
Expected behaviour:
All mounts succeed without error.
Actual behaviour:
root@xubu-18-04:~# mount /dev/loop1 /mnt/loop1
mount: /mnt/loop1: mount(2) system call failed: Structure needs cleaning.
See also a similar bug in fedora and debian:
https:/
https:/
with a suspected patch by Theodore Ts'o to fix the issue: (Not tested)
Additional info:
root@xubu-18-04:~# lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04
root@xubu-18-04:~# apt-cache policy linux-image-generic
linux-image-
Installed: 4.15.0.44.46
Candidate: 4.15.0.44.46
Version table:
*** 4.15.0.44.46 500
500 http://
500 http://
100 /var/lib/
4.15.0.20.23 500
500 http://
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CurrentDesktop: XFCE
DistroRelease: Ubuntu 18.04
InstallationDate: Installed on 2019-01-29 (0 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
IwConfig:
lo no wireless extensions.
enp0s3 no wireless extensions.
Lsusb:
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: innotek GmbH VirtualBox
Package: linux (not installed)
ProcFB: 0 svgadrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.173.3
RfKill:
StagingDrivers: vboxvideo
Tags: bionic staging
Uname: Linux 4.15.0-44-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.board.name: VirtualBox
dmi.board.vendor: Oracle Corporation
dmi.board.version: 1.2
dmi.chassis.type: 1
dmi.chassis.vendor: Oracle Corporation
dmi.modalias: dmi:bvninnotekG
dmi.product.family: Virtual Machine
dmi.product.name: VirtualBox
dmi.product.
dmi.sys.vendor: innotek GmbH
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in linux (Ubuntu Bionic): | |
assignee: | nobody → Stefan Bader (smb) |
importance: | Undecided → High |
status: | New → Fix Committed |
Changed in linux (Ubuntu): | |
status: | Confirmed → Invalid |
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 1813727
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.