Files
kernel_google_b1c1/include/linux
NeilBrown e393365fa2 dm: fix to_sector() for 32bit
commit 0bdb50c531f7377a9da80d3ce2d61f389c84cb30 upstream.

A dm-raid array with devices larger than 4GB won't assemble on
a 32 bit host since _check_data_dev_sectors() was added in 4.16.
This is because to_sector() treats its argument as an "unsigned long"
which is 32bits (4GB) on a 32bit host.  Using "unsigned long long"
is more correct.

Kernels as early as 4.2 can have other problems due to to_sector()
being used on the size of a device.

Fixes: 0cf4503174 ("dm raid: add support for the MD RAID0 personality")
cc: stable@vger.kernel.org (v4.2+)
Reported-and-tested-by: Guillaume Perréal <gperreal@free.fr>
Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-23 13:19:52 +01:00
..
2017-10-08 10:26:06 +02:00
2018-04-24 09:34:18 +02:00
2016-09-14 09:18:06 -06:00
2017-06-14 15:06:00 +02:00
2018-02-28 10:18:33 +01:00
2019-03-23 13:19:52 +01:00
2017-07-15 12:16:11 +02:00
2017-05-14 14:00:22 +02:00
2017-07-12 15:01:02 +02:00
2017-08-06 18:59:43 -07:00
2018-04-24 09:34:12 +02:00
2016-09-24 10:48:18 +02:00
2016-10-20 15:51:28 +11:00
2016-09-16 09:34:15 +01:00
2016-09-14 09:18:09 -06:00
2018-10-10 08:53:18 +02:00
2016-09-15 16:49:39 +02:00
2016-09-14 12:57:43 -07:00
2016-09-27 12:33:47 +02:00
2017-08-24 17:12:19 -07:00
2016-10-19 11:36:22 -06:00
2018-09-09 20:01:20 +02:00
2017-08-24 17:12:21 -07:00
2016-10-14 11:36:59 -07:00
2016-09-27 21:52:00 -04:00
2017-08-30 10:21:40 +02:00
2016-10-05 18:23:36 -04:00
2017-01-19 20:17:59 +01:00
2018-11-13 11:17:02 -08:00
2018-11-27 16:09:41 +01:00
2017-04-21 09:31:21 +02:00
2017-12-25 14:23:37 +01:00
2016-09-30 10:54:03 +02:00
2018-12-05 19:42:42 +01:00