A vulnerability in the Linux kernel's XFS filesystem metapath checker was fixed to prevent infinite loops caused by self-referential directory entries. The flaw caused the _ilock_both helper to loop indefinitely when attempting to double-lock the same inode if the parent and child inodes were the same, which is an invalid condition. The fix triggers an assertion, marks the scan incomplete, and returns an IO error to fail noisily instead of looping.