android_kernel_oneplus_msm8998/fs/f2fs
Ocean Chen 77bd558b2a f2fs: avoid out-of-range memory access
[ Upstream commit 56f3ce675103e3fb9e631cfb4131fc768bc23e9a ]

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: Ocean Chen <oceanchen@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-08-04 09:34:58 +02:00
..
acl.c f2fs: fix wrong return value of f2fs_acl_create 2019-02-20 10:13:06 +01:00
acl.h f2fs: avoid deadlock on init_inode_metadata 2014-11-03 16:07:33 -08:00
checkpoint.c f2fs: fix invalid memory access 2019-01-26 09:42:48 +01:00
crypto.c f2fs crypto: replace some BUG_ON()'s with error checks 2017-10-27 10:23:18 +02:00
crypto_fname.c f2fs crypto: replace some BUG_ON()'s with error checks 2017-10-27 10:23:18 +02:00
crypto_key.c fscrypt: fix dereference of NULL user_key_payload 2017-10-27 10:23:18 +02:00
crypto_policy.c fscrypt: don't set policy for a dead directory 2019-07-21 09:07:10 +02:00
data.c f2fs: fix to do sanity check with block address in main area v2 2019-01-26 09:42:48 +01:00
debug.c f2fs: set ->owner for debugfs status file's file_operations 2017-01-06 11:16:13 +01:00
dir.c f2fs: fix to convert inline directory correctly 2019-01-26 09:42:45 +01:00
extent_cache.c f2fs: fix a bug caused by NULL extent tree 2018-03-03 10:19:41 +01:00
f2fs.h f2fs: fix to do sanity check with block address in main area 2019-01-26 09:42:48 +01:00
f2fs_crypto.h fscrypt: remove broken support for detecting keyring key revocation 2017-03-31 09:49:54 +02:00
file.c f2fs: move dir data flush to write checkpoint process 2019-02-20 10:13:06 +01:00
gc.c f2fs: relax node version check for victim data in gc 2018-03-22 09:23:22 +01:00
gc.h f2fs: support synchronous gc in ioctl 2015-10-09 16:20:56 -07:00
hash.c f2fs: check entire encrypted bigname when finding a dentry 2017-05-25 14:30:11 +02:00
inline.c f2fs: fix to do sanity check with reserved blkaddr of inline inode 2019-01-26 09:42:48 +01:00
inode.c f2fs: fix to do sanity check with block address in main area v2 2019-01-26 09:42:48 +01:00
Kconfig f2fs: fix typo 2015-08-21 22:43:32 -07:00
Makefile f2fs: maintain extent cache in separated file 2015-08-04 14:09:58 -07:00
namei.c do d_instantiate/unlock_new_inode combinations safely 2018-05-30 07:48:52 +02:00
node.c f2fs: read page index before freeing 2019-02-06 19:43:05 +01:00
node.h f2fs: use crc and cp version to determine roll-forward recovery 2019-01-26 09:42:46 +01:00
recovery.c f2fs: fix to avoid panic in do_recover_data() 2019-06-22 08:18:19 +02:00
segment.c f2fs: avoid out-of-range memory access 2019-08-04 09:34:58 +02:00
segment.h f2fs: fix to do sanity check on valid block count of segment 2019-06-22 08:18:19 +02:00
shrinker.c f2fs: shrink free_nids entries 2015-08-20 09:00:06 -07:00
super.c f2fs: fix to do sanity check with current segment number 2019-04-27 09:33:58 +02:00
trace.c f2fs: do not use mutex lock in atomic context 2019-04-27 09:33:49 +02:00
trace.h f2fs: add sbi and page pointer in f2fs_io_info 2015-05-28 15:41:32 -07:00
xattr.c f2fs: xattr simplifications 2015-11-13 20:34:34 -05:00
xattr.h f2fs crypto: add encryption xattr support 2015-05-28 15:41:47 -07:00