Re: [PATCH] erofs: guard on-disk algorithm IDs against Z_EROFS_COMPRESSION_MAX

From: Chao Yu

Date: Mon Aug 17 2026 - 04:11:31 EST


On 8/14/26 16:14, Gao Xiang wrote:
All on-disk algorithm IDs should be validated against
supported Z_EROFS_COMPRESSION_MAX.

This includes a partial revert of a previous commit and also adds
validation for encoded extents.

Fixes: 131897c65e2b ("erofs: fix invalid algorithm for encoded extents")
Signed-off-by: Gao Xiang <xiang@xxxxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,