[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] dm-stripe.c data corruption
- From: "bart brooks" <bart_brooks hotmail com>
- To: dm-devel redhat com
- Subject: [dm-devel] dm-stripe.c data corruption
- Date: Mon, 05 Jun 2006 15:41:25 +0000
In RHEL 4 U3 theres a bug in dm-stripe.c, in the function stripe_map()
which will result in data corruption.
The call to the macro below will step on the variable chunk, which is used
later on in the function.
uint32_t stripe = do_div(chunk, sc->stripes);
The following is a very simple solution:
sector_t chunk2 = chunk;
uint32_t stripe = do_div(chunk2, sc->stripes);
Bart
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]