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
..
2014-01-30 12:57:55 -07:00
2014-02-27 11:49:08 -05:00
2013-12-11 15:28:36 -08:00
2013-12-11 15:28:36 -08:00
2013-03-01 22:45:51 +00:00
2013-03-01 22:45:51 +00:00
2013-11-23 22:33:55 -08:00
2014-01-30 11:19:05 -08:00
2014-01-14 23:23:03 -05:00
2014-01-14 23:23:04 -05:00
2013-03-01 22:45:51 +00:00
2013-11-11 11:37:49 -05:00
2013-11-11 11:37:49 -05:00
2013-03-20 17:21:27 +00:00
2013-11-11 11:37:50 -05:00
2014-01-30 11:19:05 -08:00
2014-01-16 13:44:11 -05:00
2014-01-16 13:44:11 -05:00
2014-02-28 09:23:02 -05:00
2013-11-23 22:33:51 -08:00
2014-01-30 11:19:05 -08:00
2012-07-27 15:07:59 +01:00
2010-08-12 04:13:51 +01:00
2013-11-23 22:33:47 -08:00
2014-02-17 11:00:05 -05: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
2014-01-21 23:46:27 -05:00
2012-05-10 23:21:39 -04:00
2009-09-04 20:40:34 +01:00
2012-07-30 17:25:16 -07:00
2014-02-26 09:44:44 -05:00
2008-10-10 13:36:58 +01:00
2011-10-31 19:31:18 -04:00
2009-06-22 10:12:27 +01:00
2012-03-28 18:41:26 +01:00
2014-02-18 10:48:57 -05:00
2013-06-26 12:38:24 +10:00
2013-11-23 22:33:47 -08:00
2012-03-28 18:41:26 +01:00
2012-03-28 18:41:26 +01:00
2014-01-14 23:23:03 -05:00
2011-10-31 19:31:19 -04:00
2014-01-30 11:19:05 -08:00
2013-12-10 19:13:21 -05: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
2014-01-07 10:11:44 -05:00
2013-09-05 20:46:05 -04:00
2014-02-27 11:49:08 -05:00
2014-02-27 11:49:08 -05:00
2014-02-27 11:49:08 -05:00
2011-10-31 19:31:19 -04: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-30 11:19:05 -08: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
2011-10-11 16:48:54 +11:00
2014-01-14 23:23:04 -05:00
2014-01-30 11:19:05 -08:00
2014-01-20 15:49:44 -08:00
2013-11-23 22:33:47 -08:00
2011-10-11 16:48:57 +11:00
2013-11-23 22:33:57 -08:00
2012-03-19 12:46:39 +11:00
2014-02-05 12:26:04 +11:00
2013-11-19 15:19:18 +11:00
2014-02-13 13:46:45 +11:00
2013-11-20 13:05:25 -08:00
2014-01-30 11:19:05 -08:00
2013-02-26 11:55:30 +11:00