]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: check da node magic in _node_lookup_int
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 1 Aug 2018 14:40:48 +0000 (07:40 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 1 Aug 2018 14:42:43 +0000 (07:42 -0700)
commit8766698ae33842cb715c42f5233ebe71ad00afdf
treef42379c8e711f80b3da29580490592c82a7c841d
parent0a681afe79610a53423d3429b0e2537a00e97ba7
xfs: check da node magic in _node_lookup_int

Before we start processing what we /think/ is a da3 node block, actually
check the magic to make sure that we're looking at a node block.  This
way we won't blow the asserts in _node_hdr_from_disk on corrupted
metadata.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
fs/xfs/libxfs/xfs_da_btree.c