[PATCH v2] erofs: fix memory leak on short-lived bounced pages

Yue Hu zbestahu at gmail.com
Wed Nov 29 16:39:23 AEDT 2023


On Wed, 29 Nov 2023 02:04:31 +0800
Gao Xiang <hsiangkao at linux.alibaba.com> wrote:

> Both MicroLZMA and DEFLATE algorithms can use short-lived pages on
> demand for overlap inplace I/O decompression.
> 
> However, those short-lived pages are actually added to
> `be->compressed_pages`.  Thus, it should be checked instead of
> `pcl->compressed_bvecs`.
> 
> The LZ4 algorithm doesn't work like this, so it won't be impacted.
> 
> Fixes: 67139e36d970 ("erofs: introduce `z_erofs_parse_in_bvecs'")
> Signed-off-by: Gao Xiang <hsiangkao at linux.alibaba.com>

Reviewed-by: Yue Hu <huyue2 at coolpad.com>


More information about the Linux-erofs mailing list