linux/fs/erofs
Gao Xiang 4d2024370d erofs: fix out-of-bound read for shifted uncompressed block
rq->out[1] should be valid before accessing. Otherwise,
in very rare cases, out-of-bound dirty onstack rq->out[1]
can equal to *in and lead to unintended memmove behavior.

Link: https://lore.kernel.org/r/20200107022546.19432-1-gaoxiang25@huawei.com
Fixes: 7fc45dbc93 ("staging: erofs: introduce generic decompression backend")
Cc: <stable@vger.kernel.org> # 5.3+
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
2020-01-11 18:29:19 +08:00
..
compress.h
data.c erofs: fix erofs_get_meta_page locking due to a cleanup 2019-10-01 04:54:33 +08:00
decompressor.c erofs: fix out-of-bound read for shifted uncompressed block 2020-01-11 18:29:19 +08:00
dir.c erofs: rename errln/infoln/debugln to erofs_{err, info, dbg} 2019-09-05 20:10:09 +02:00
erofs_fs.h erofs: support superblock checksum 2019-11-24 11:02:41 +08:00
inode.c erofs: always use iget5_locked 2019-09-05 20:10:09 +02:00
internal.h erofs: remove unused tag argument while registering a workgroup 2020-01-07 10:08:45 +08:00
Kconfig erofs: support superblock checksum 2019-11-24 11:02:41 +08:00
Makefile
namei.c erofs: rename errln/infoln/debugln to erofs_{err, info, dbg} 2019-09-05 20:10:09 +02:00
super.c erofs: remove unnecessary output in erofs_show_options() 2019-11-24 11:02:41 +08:00
tagptr.h
utils.c erofs: remove void tagging/untagging of workgroup pointers 2020-01-07 10:09:21 +08:00
xattr.c erofs: zero out when listxattr is called with no xattr 2019-12-04 21:15:04 +08:00
xattr.h erofs: correct indentation of an assigned structure inside a function 2020-01-07 10:08:27 +08:00
zdata.c erofs: remove unused tag argument while registering a workgroup 2020-01-07 10:08:45 +08:00
zdata.h erofs: clean up decompress queue stuffs 2019-11-24 11:02:41 +08:00
zmap.c erofs: drop all vle annotations for runtime names 2019-11-24 11:02:41 +08:00
zpvec.h