Heinz Mauelshagen e0d849fad7 dm cache: fix truncation bug when mapping I/O to >2TB fast device
When remapping a block to the cache's fast device that is larger than
2TB we must not truncate the destination sector to 32bits.  The 32bit
temporary result of from_cblock() was being overflowed in
remap_to_cache() due to the logical left shift.

Use an intermediate 64bit type to store the 32bit from_cblock() result
to fix the overflow.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
2014-02-28 09:23:02 -05:00
..
2013-03-01 22:45:51 +00:00
2013-03-01 22:45:51 +00:00
2014-01-14 23:23:03 -05:00
2013-03-01 22:45:51 +00:00
2013-11-23 22:33:47 -08:00
2013-11-09 18:20:22 -05:00
2013-08-23 09:02:13 -04:00
2013-11-23 22:33:47 -08:00
2012-07-30 17:25:16 -07:00
2013-09-05 20:46:06 -04:00
2013-11-23 22:33:47 -08:00
2013-11-23 22:33:47 -08:00
2014-01-14 23:23:04 -05:00
2007-10-20 02:01:26 +01:00
2013-11-23 22:33:56 -08:00
2013-03-01 22:45:47 +00:00
2014-01-14 23:23:04 -05:00
2013-11-23 22:33:47 -08:00
2014-01-14 23:23:04 -05:00
2013-11-23 22:33:57 -08:00
2014-01-14 23:23:04 -05:00
2014-01-20 15:49:44 -08:00
2013-11-23 22:33:47 -08:00
2013-11-23 22:33:57 -08:00
2013-11-20 13:05:25 -08:00