Skip to content
Commit 56f3ce67 authored by Ocean Chen's avatar Ocean Chen Committed by Jaegeuk Kim
Browse files

f2fs: avoid out-of-range memory access



blkoff_off might over 512 due to fs corrupt or security
vulnerability. That should be checked before being using.

Use ENTRIES_IN_SUM to protect invalid value in cur_data_blkoff.

Signed-off-by: default avatarOcean Chen <oceanchen@google.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 6e0cd4a9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment