Files
kernel_xiaomi_sm8250/include/linux
NeilBrown 7668d6e45f 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 20:10:09 +01:00
..
2018-11-21 09:19:16 +01:00
2018-08-22 10:52:48 -07:00
2019-03-23 20:10:09 +01:00
2018-11-13 11:08:50 -08:00
2018-09-04 21:31:43 +02:00
2018-08-22 10:52:45 -07:00
2018-08-22 10:52:46 -07:00
2018-08-16 12:14:42 -07:00
2018-11-13 11:08:51 -08:00