Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ae507f78 authored by Sahitya Tummala's avatar Sahitya Tummala
Browse files

f2fs: add a condition to detect overflow in f2fs_ioc_gc_range()



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.

Change-Id: I865d05098890c16ae8d5380038ef71c20d0f9a4a
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent 7adfd57c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment