[PATCH v2 2/2] f2fs: fix to do sanity check with extra_attr feature

2018-06-25 Thread Chao Yu
From: Chao Yu If FI_EXTRA_ATTR is set in inode by fuzzing, inode.i_addr[0] will be parsed as inode.i_extra_isize, then in __recover_inline_status, inline data address will beyond boundary of page, result in accessing invalid memory. So in this condition, during reading inode page, let's do

[PATCH v2 2/2] f2fs: fix to do sanity check with extra_attr feature

2018-06-25 Thread Chao Yu
From: Chao Yu If FI_EXTRA_ATTR is set in inode by fuzzing, inode.i_addr[0] will be parsed as inode.i_extra_isize, then in __recover_inline_status, inline data address will beyond boundary of page, result in accessing invalid memory. So in this condition, during reading inode page, let's do