Re: [PATCH] block/compat_ioctl: fix range check in BLKGETSIZE

From: Jens Axboe
Date: Thu Aug 02 2018 - 17:31:58 EST


On 4/6/18 4:23 PM, Khazhismel Kumykov wrote:
> 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.

Sorry for not getting to this. Applied, thanks.

--
Jens Axboe