mdadm may break bbl if bitmap is too large
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
mdadm 3.3-2ubuntu7.6 (for xenial) has a bug which may break an internal write-intent bitmap.
Due to this bug, a bitmap overlaps with a bbl (bad block log), then the bbl gets to be inconsistent.
The cause of the bug is that a bbl is placed at a fixed location (80 sectors from the beginning of a disk).
Because an internal write-intent bitmap is placed before the bbl (16 sectors from the beginning of a disk),
it overlaps with the bbl when it grows too large (> 64 sectors).
See this figure. https:/
This bug has been fixed in upstream of mdadm. The fixing commit is https:/
I tested the bug on the following versions:
- mdadm 3.3-2ubuntu7.6 (for xenial) : The bug is reproduced
- mdadm 3.4-4ubuntu0.1 (for zesty) : The bug is reproduced
- mdadm 4.0-2 (for artful) : The bug has been fixed
I want you to backport the patch to Ubuntu 16.04 LTS because the bug is serious.
Detailed description (containing scripts to reproduce the bug) is here:
https:/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: mdadm 3.3-2ubuntu7.2
ProcVersionSign
Uname: Linux 4.4.0-96-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.13
Architecture: amd64
Date: Thu Dec 14 18:09:57 2017
InstallationDate: Installed on 2017-02-03 (313 days ago)
InstallationMedia: Ubuntu-Server 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
Lspci:
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MachineType: Microsoft Corporation Virtual Machine
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: mdadm
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/26/2016
dmi.bios.vendor: Microsoft Corporation
dmi.bios.version: Hyper-V UEFI Release v2.0
dmi.board.
dmi.board.name: Virtual Machine
dmi.board.vendor: Microsoft Corporation
dmi.board.version: Hyper-V UEFI Release v2.0
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Microsoft Corporation
dmi.chassis.
dmi.modalias: dmi:bvnMicrosof
dmi.product.name: Virtual Machine
dmi.product.
dmi.sys.vendor: Microsoft Corporation
etc.blkid.tab: Error: [Errno 2] No such file or directory: '/etc/blkid.tab'
summary: |
- mdadm may broke bbl if bitmap is too large + mdadm may break bbl if bitmap is too large |
Status changed to 'Confirmed' because the bug affects multiple users.