In the Linux kernel, the following vulnerability has been resolved: xfs: don't try to scrub self-referential dirent in metapath checker LOLLM observes that the _ilock_both helper will loop forever trying to double-lock the same inode if mpath->dp == sc->ip. Callers are not supposed to call us with parent == child because that makes no sense. Trigger an assertion, mark the scan incomplete, and return IO error so that this fails noisily.
https://git.kernel.org/stable/c/4fe6d43988e98c25e592b560b63d055c01a0046d
https://git.kernel.org/stable/c/1e7337a3ecebab1bb2ba02187d88b94e5146e4f0
https://git.kernel.org/stable/c/1bde9463d75244ade3f870e34e9e60f2cb686c44