linux/drivers/staging/erofs
Gao Xiang 33bac91284 staging: erofs: keep corrupted fs from crashing kernel in erofs_readdir()
After commit 419d6efc50, kernel cannot be crashed in the namei
path. However, corrupted nameoff can do harm in the process of
readdir for scenerios without dm-verity as well. Fix it now.

Fixes: 3aa8ec716e ("staging: erofs: add directory operations")
Cc: <stable@vger.kernel.org> # 4.19+
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-29 17:25:45 +01:00
..
Documentation/filesystems staging: erofs: complete POSIX ACL support 2019-01-30 15:38:50 +01:00
include staging: erofs: add trace points for reading zipped data 2018-09-18 16:35:03 +02:00
Kconfig staging: erofs: fix undefined LZ4_decompress_safe_partial() 2018-11-09 08:34:39 -08:00
Makefile staging: prefix header search paths with $(srctree)/ 2019-02-04 12:30:27 +01:00
TODO staging: erofs: update erofs-utils information in TODO 2018-12-06 16:08:56 +01:00
data.c for-5.1/block-20190302 2019-03-08 14:12:17 -08:00
dir.c staging: erofs: keep corrupted fs from crashing kernel in erofs_readdir() 2019-03-29 17:25:45 +01:00
erofs_fs.h staging: erofs: remove __EROFS_BIT 2018-12-12 11:29:46 +01:00
inode.c staging: erofs: complete POSIX ACL support 2019-01-30 15:38:50 +01:00
internal.h staging: erofs: fix race of initializing xattrs of a inode at the same time 2019-02-20 11:20:55 +01:00
namei.c staging: erofs: keep corrupted fs from crashing kernel in erofs_namei() 2019-02-14 10:47:21 +01:00
super.c staging: erofs: complete POSIX ACL support 2019-01-30 15:38:50 +01:00
unzip_pagevec.h staging: erofs: unzip_{pagevec.h,vle.c}: rectify BUG_ONs 2018-12-12 10:56:34 +01:00
unzip_vle.c staging: erofs: fix error handling when failed to read compresssed data 2019-03-26 05:54:18 +09:00
unzip_vle.h staging: erofs: compressed_pages should not be accessed again after freed 2019-02-27 15:41:57 +01:00
unzip_vle_lz4.c staging: erofs: fix to handle error path of erofs_vmap() 2019-03-18 07:56:14 +01:00
utils.c staging: erofs: staticize erofs_shrink_count, erofs_shrink_scan 2019-01-18 10:37:16 +01:00
xattr.c staging: erofs: fix race of initializing xattrs of a inode at the same time 2019-02-20 11:20:55 +01:00
xattr.h staging: erofs: complete POSIX ACL support 2019-01-30 15:38:50 +01:00