Khazhismel Kumykov ccf16413e5 block/compat_ioctl: fix range check in BLKGETSIZE
kernel ulong and compat_ulong_t may not be same width. Use type directly
to eliminate mismatches.

This would result in truncation rather than EFBIG for 32bit mode for
large disks.

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Khazhismel Kumykov <khazhy@google.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220414224056.2875681-1-khazhy@google.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-04-15 06:32:40 -06:00
..
2022-02-02 07:49:59 -07:00
2022-02-18 06:13:00 -07:00
2022-03-21 16:48:55 -07:00
2022-04-01 16:20:00 -07:00
2022-03-24 19:37:53 -07:00
2022-03-24 19:37:53 -07:00
2022-03-26 11:51:46 -07:00
2021-12-06 13:18:47 -07:00
2020-03-17 20:55:21 +01:00
2022-04-01 16:20:00 -07:00
2022-03-08 19:39:38 -07:00
2022-03-24 19:37:53 -07:00
2022-03-31 12:58:38 -06:00
2022-03-24 19:37:53 -07:00
2022-03-24 19:37:53 -07:00
2022-03-26 11:51:46 -07:00
2021-09-14 00:22:15 -04:00
2022-02-02 07:49:59 -07:00
2022-03-21 16:48:55 -07:00
2021-10-18 06:17:01 -06:00
2022-03-26 11:51:46 -07:00
2022-04-01 16:20:00 -07:00
2022-02-02 07:49:59 -07:00
2022-01-12 10:26:52 -08:00
2022-03-07 12:48:35 -07:00
2022-02-02 07:49:59 -07:00
2022-03-07 12:48:35 -07:00