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)
commite12a0ce2fa69798194f3a8628baf6edfbd5c548f
tree92ea2026443650c6eee452dccdfbefe6260abf9f
parent8467c3b456b57fcb4b3179c34c20cbc9c88956c5
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: 3883a79abd02 ("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