]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_repair: fix incorrect dabtree hashval comparison
authorDarrick J. Wong <djwong@kernel.org>
Wed, 15 Mar 2023 01:01:55 +0000 (18:01 -0700)
committerCarlos Maiolino <cem@kernel.org>
Fri, 17 Mar 2023 10:35:43 +0000 (11:35 +0100)
commitb7b81f336ac02f4e4f24e0844a7fb3023c489667
treeec0dc1b320f2e4ea364865541ddfebac760634fa
parente0aeb058100b15e4505d4bf79af3d19ed1f38655
xfs_repair: fix incorrect dabtree hashval comparison

If an xattr structure contains enough names with the same hash value to
fill multiple xattr leaf blocks with names all hashing to the same
value, then the dabtree nodes will contain consecutive entries with the
same hash value.

This causes false corruption reports in xfs_repair because it's not
expecting such a huge same-hashing structure.  Fix that.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
repair/da_util.c