Hi Dave & Darrick: To reproduce this problem add xfs/554 [1]. And, I resend a patch v2 [2], considering the situation mentioned by Darrick, Meanwhile, check the i_disk_size or get dir blocks at xfs_dir3_leaf_check_int looks a little strange. So in my opinion, we can just add judgment in that situation, avoiding UAF and return EFSCORRUPTED, xfs_repair will help us fix it. [1] https://lore.kernel.org/all/20220902094046.3891252-1-guoxuenan@xxxxxxxxxx/ [2] https://lore.kernel.org/all/20220831121639.3060527-1-guoxuenan@xxxxxxxxxx/ thanks Xueanan