Skip to content
Snippets Groups Projects
Commit f6e1c049 authored by Gao Xiang's avatar Gao Xiang Committed by Frieder Schrempf
Browse files

erofs: fix memory leak on short-lived bounced pages


[ Upstream commit 93d6fda7 ]

Both MicroLZMA and DEFLATE algorithms can use short-lived pages on
demand for the overlapped 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: 67139e36 ("erofs: introduce `z_erofs_parse_in_bvecs'")
Reviewed-by: default avatarYue Hu <huyue2@coolpad.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarGao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20231128180431.4116991-1-hsiangkao@linux.alibaba.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 237de96a
No related branches found
No related tags found
1 merge request!126🤖 Sync Bot: Update v6.1-ktn to Latest Stable Kernel (v6.1.77)
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment