]> git.baikalelectronics.ru Git - kernel.git/commit
staging: erofs: detect potential multiref due to corrupted images
authorGao Xiang <gaoxiang25@huawei.com>
Wed, 21 Aug 2019 14:01:52 +0000 (22:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2019 16:12:42 +0000 (09:12 -0700)
commitacbc9083c4837d8e698d6a8f1d1e4c963fc103e3
tree92ea2026443650c6eee452dccdfbefe6260abf9f
parente6571832ce7e9bc371e16c3990db44d302628409
staging: erofs: detect potential multiref due to corrupted images

As reported by erofs-utils fuzzer, currently, multiref
(ondisk deduplication) hasn't been supported for now,
we should forbid it properly.

Fixes: 1117b3581300 ("staging: erofs: introduce VLE decompression support")
Cc: <stable@vger.kernel.org> # 4.19+
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Link: https://lore.kernel.org/r/20190821140152.229648-1-gaoxiang25@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/zdata.c