staging: erofs: some compressed cluster should be submitted for corrupted images
commitee45197c807895e156b2be0abcaebdfc116487c8
authorGao Xiang <gaoxiang25@huawei.com>
Mon, 19 Aug 2019 10:34:21 +0000 (19 18:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2019 02:15:32 +0000 (20 19:15 -0700)
treeaed525e6d873ad5dd80f1b5546534ada53d47830
parentacb383f1dcb4f1e79b66d4be3a0b6f519a957b0d
staging: erofs: some compressed cluster should be submitted for corrupted images

As reported by erofs_utils fuzzer, a logical page can belong
to at most 2 compressed clusters, if one compressed cluster
is corrupted, but the other has been ready in submitting chain.

The chain needs to submit anyway in order to keep the page
working properly (page unlocked with PG_error set, PG_uptodate
not set).

Let's fix it now.

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/20190819103426.87579-2-gaoxiang25@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/zdata.c