On Tue, Dec 15, 2015 at 10:04:01AM +0800, Qu Wenruo wrote:
> Enhance chunk validation:
> 1) Num_stripes
>    We already have such check but it's only in super block sys chunk
>    array.
>    Now check all on-disk chunks.
> 
> 2) Chunk logical
>    It should be aligned to sector size.
>    This behavior should be *DOUBLE CHECKED* for 64K sector size like
>    PPC64 or AArch64.
>    Maybe we can found some hidden bugs.
> 
> 3) Chunk length
>    Same as chunk logical, should be aligned to sector size.
> 
> 4) Stripe length
>    It should be power of 2.
> 
> 5) Chunk type
>    Any bit out of TYPE_MAS | PROFILE_MASK is invalid.
> 
> With all these much restrict rules, several fuzzed image reported in
> mail list should no longer cause btrfsck error.
> 
> Reported-by: Vegard Nossum <vegard.nos...@oracle.com>
> Signed-off-by: Qu Wenruo <quwen...@cn.fujitsu.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to