2022-04-16 01:08:34

by Chaitanya Kulkarni

[permalink] [raw]
Subject: Re: [PATCH v2] block/compat_ioctl: fix range check in BLKGETSIZE

On 4/14/22 15:40, 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.
>
> Reviewed-by: Bart Van Assche <[email protected]>
> Signed-off-by: Khazhismel Kumykov <[email protected]>
> ---

Looks good.

Reviewed-by: Chaitanya Kulkarni <[email protected]>

-ck