2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 14:43:58 +08:00
linux-next/drivers/staging/erofs
Gao Xiang f4e97f5d4c staging: erofs: fix unexpected out-of-bound data access
Unexpected out-of-bound data will be read in erofs_read_raw_page
after commit 07173c3ec2 ("block: enable multipage bvecs") since
one iovec could have multiple pages.

Let's fix as what Ming's pointed out in the previous email [1].

[1] https://lore.kernel.org/lkml/20190411080953.GE421@ming.t460p/

Suggested-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Fixes: 07173c3ec2 ("block: enable multipage bvecs")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-16 13:56:20 +02: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
data.c staging: erofs: fix unexpected out-of-bound data access 2019-04-16 13:56:20 +02: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
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
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
TODO staging: erofs: update erofs-utils information in TODO 2018-12-06 16:08:56 +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_lz4.c staging: erofs: fix to handle error path of erofs_vmap() 2019-03-18 07:56:14 +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
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