Silent wraparound on > 2 TB LVM snapshots in lucid and karmic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Lucid |
Won't Fix
|
High
|
Unassigned |
Bug Description
Ubuntu kernels silently wrap access to disk locations above 2 TB back around to zero. This can easily be reproduced using lvm to create a thin provisioned virtual disk:
lvcreate -s -n thin -L 1g --virtualsize 3t vg0
mke2fs -t ext4 -E lazy_itable_init /dev/vg0/thin
e2fsck -f /dev/vg0/thin
Fsck will find errors in the bitmap because it is actually reading the superblock instead of the allocation bitmap situated just after the 2 tb mark.
This affects Karmic and Lucid and will cause data loss and severe filesystem corruption that may go unnoticed for some time, if someone creates a snapshot of a 2TB + size logical volume. It was fixed upstream as of 2.6.33.
See comment #26 for details on the problem and what needs done to fix it.
Changed in linux (Ubuntu): | |
importance: | Undecided → High |
status: | New → Triaged |
description: | updated |
Changed in linux (Ubuntu): | |
milestone: | none → lucid-updates |
milestone: | lucid-updates → karmic-updates |
milestone: | karmic-updates → none |
description: | updated |
description: | updated |
summary: |
- Silent wraparound on > 2 TB LVM snapshots + Silent wraparound on > 2 TB LVM volumes in lucid |
tags: | added: patch |
Changed in linux (Ubuntu): | |
status: | Triaged → Fix Released |
Changed in linux (Ubuntu Lucid): | |
status: | New → Triaged |
importance: | Undecided → High |
Seems CONFIG_LBDAF was barking up the wrong tree. It is set on the i386 build, and does not apply to amd64.