Bug 481027 - backport the fix to the misordered write bug in dm-exception-store.c to the next RHEL4/RHEL5 updates
Summary: backport the fix to the misordered write bug in dm-exception-store.c to the n...
Keywords:
Status: CLOSED DUPLICATE of bug 496102
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: device-mapper
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: LVM and device-mapper development team
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-01-21 19:43 UTC by luping.nju
Modified: 2010-06-23 15:23 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-23 15:23:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description luping.nju 2009-01-21 19:43:34 UTC
Description of problem:

In dm-exception-store.c, when a metatdata chunk is filled in, the code firstly write to disk the current metadata chunk and then zero out the next metadata chunk. This could end up with a inconsistent exception data structure on disk if there is a power outage / kernel crash coming in between the two writes.

The bug has actually been fixed in the current mainstream kernel by Mikulas Patocka. See the following link:

http://lkml.indiana.edu/hypermail/linux/kernel/0810.3/0020.html

But I am not sure if it's going to be in the next RHEL4/RHEL5 updates. So here I am requesting to have this included in the next updates.

Version-Release number of selected component (if applicable):

It exists on all the stable RHEL4/RHEL5 releases

How reproducible:

It's hard to reproduce in real life, but we can certainly simulate this by manually put a "die" in between the two writes.

Additional info:

Comment 2 Milan Broz 2010-06-23 15:23:37 UTC

*** This bug has been marked as a duplicate of bug 496102 ***


Note You need to log in before you can comment on or make changes to this bug.