dm-stripe.c data corruption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In RHEL 4 U3 there?s 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


--

dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux