From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21F9C3B8BDA for ; Mon, 17 Aug 2026 08:11:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786954285; cv=none; b=m2g6FL8T6uXPFudzkTuUPnAMphVLK4WPuuUjrfermPIO1QZ0fk3ihQn7umamE1tiO4fLFf4ANoRmGayvHYdFJiOM2Ob3Ips9UiTK/AqvNZCH1LhDlQoWj1GvhxSMLBRpI3aWR7mR4xy7HgqHdOzczDkd8+9IDjCaN4LEhux27IE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786954285; c=relaxed/simple; bh=zdOBgz9dl7M7cDykzSONoq25phg/wQRzbLnFBSuCBd4=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=hWIiFYeS2rsbbsaUoM8uBJ+9NnWF3I5p1qGiG/AVLGtISOqh18K9jZs5uFF3vGuncxoQE3ipsGZ9ImJw19ij5VH85K5aP+GwiQ14RAiASUjG48+jV7EcMqloVosdpoaSyC9g8ib53Dixn5/qjjImnJWJMqGiJkGzGBkIiyN8R9I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IJYZhxpB; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IJYZhxpB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D48801F000E9; Mon, 17 Aug 2026 08:11:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1786954283; bh=AyyzHu8e4Htiwfuj+novWAoEVev/f7N2ubm2IGDxvAo=; h=Date:Cc:Subject:To:References:From:In-Reply-To; b=IJYZhxpBga8gDnoO/WhVJ0DuXaBhU/3/8qtQ2d6UKnfCfiZKfhTpR72eaMh8y0yPB nZpqB6SPbee1ol3NCjlhFXTEQSt4EtDl/IbHyNJytVPobuASGwW880ED29C9jya3Kp d2ZioEGKjK+CG7/krz3JILj+1ZLIiR5fj9KXSGAsVLJq0EymjU8leqSflHrdmC9GBr allUk7h6iY6XHjJsF7VXp/sJZgaYAgtM67e7lr3cpw2OBL1VybyrgvyGpXFU/aAZPY gjD6W9+MOL6ZMyYZ6r4AZQXESMGpfscQcwoFxAo9+NAzRTigtZuVMMrOWV1lOyJS4+ XoTuSUuZ7wqXg== Message-ID: Date: Mon, 17 Aug 2026 16:11:20 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: chao@kernel.org, LKML Subject: Re: [PATCH] erofs: guard on-disk algorithm IDs against Z_EROFS_COMPRESSION_MAX To: Gao Xiang , linux-erofs@lists.ozlabs.org References: <20260814081437.86684-1-xiang@kernel.org> Content-Language: en-US From: Chao Yu In-Reply-To: <20260814081437.86684-1-xiang@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Reviewed-by: Chao Yu Thanks,