• B
    xfs: distinguish between bnobt and cntbt magic values · b8f89801
    Brian Foster 提交于
    The allocation btree verifiers share code that is unable to detect
    cross-tree magic value corruptions such as a bnobt block with a
    cntbt magic value. Populate the b_ops->magic field of the associated
    verifier structures such that the structure verifier can check the
    magic value against the expected value based on tree type.
    
    The btree level check requires knowledge of the tree type to
    determine the appropriate maximum value. This was previously part of
    the hardcoded magic value checks. With that code removed, peek at
    the first magic value in the verifier to determine the expected tree
    type of the current block.
    Signed-off-by: NBrian Foster <bfoster@redhat.com>
    Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
    Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
    b8f89801
xfs_alloc_btree.c 13.0 KB
反馈
建议
客服 返回
顶部