Re: [PATCH] f2fs: add a condition to detect overflow in f2fs_ioc_gc_range()
From: Chao Yu
Date: Tue Sep 17 2019 - 02:20:34 EST
On 2019/9/17 12:49, Sahitya Tummala wrote:
> end = range.start + range.len;
>
> If the range.start/range.len is a very large value, then end can overflow
> in this operation. It results into a crash in get_valid_blocks() when
> accessing the invalid range.start segno.
>
> This issue is reported in ioctl fuzz testing.
>
> Signed-off-by: Sahitya Tummala <stummala@xxxxxxxxxxxxxx>
Reviewed-by: Chao Yu <yuchao0@xxxxxxxxxx>
Thanks,