From: Darrick J. Wong <darrick.wong@xxxxxxxxxx> If a da btree pointer is zero (i.e. the beginning of the fork) report this as a corrupt tree to the caller instead of telling it that everything is good. Fixes assertion errors when fuzzing nbtree[0].before to zero in xfs/394. Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> --- repair/dir2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repair/dir2.c b/repair/dir2.c index 73dff90..47ece00 100644 --- a/repair/dir2.c +++ b/repair/dir2.c @@ -1238,8 +1238,8 @@ process_node_dir2( * Skip directories with a root marked XFS_DIR2_LEAFN_MAGIC */ if (bno == 0) { - release_da_cursor(mp, &da_cursor, 0); - return 0; + err_release_da_cursor(mp, &da_cursor, 0); + return 1; } else { /* * Now pass cursor and bno into leaf-block processing routine. -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html