commit | 8fa455bb6ea0e748152cabd529edc4d2b4ed6253 | [log] [tgz] |
---|---|---|
author | Sheng Yong <shengyong1@huawei.com> | Mon Jan 29 19:13:15 2018 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Sun Apr 08 04:00:48 2018 -0700 |
tree | e75046d5cd918450eeeab73162eb4d3a7a1b54e2 | |
parent | 9d9cb0ef73f965ddceccc1fedb95cab620cb69b4 [diff] |
f2fs: fix potential corruption in area before F2FS_SUPER_OFFSET sb_getblk does not guarantee the buffer head is uptodate. If bh is not uptodate, the data (may be used as boot code) in area before F2FS_SUPER_OFFSET may get corrupted when super block is committed. Signed-off-by: Sheng Yong <shengyong1@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>