[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1ad336ce-a28a-9841-6438-2b0f851c0a6f@huawei.com>
Date: Tue, 17 Sep 2019 14:18:22 +0800
From: Chao Yu <yuchao0@...wei.com>
To: Sahitya Tummala <stummala@...eaurora.org>,
Jaegeuk Kim <jaegeuk@...nel.org>,
<linux-f2fs-devel@...ts.sourceforge.net>
CC: <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] f2fs: add a condition to detect overflow in
f2fs_ioc_gc_range()
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@...eaurora.org>
Reviewed-by: Chao Yu <yuchao0@...wei.com>
Thanks,
Powered by blists - more mailing lists