preload: path resolution hangs on a symlink that points to itself
mslusarz opened this issue · comments
Found by pjdfstest in case of fchmodat:
https://github.com/pjd/pjdfstest/blob/master/tests/chmod/06.t
but I think it's possible to hit it for other syscalls.
Yes, these tests also hang because of the same problem:
https://github.com/pjd/pjdfstest/blob/master/tests/chown/06.t
https://github.com/pjd/pjdfstest/blob/master/tests/ftruncate/07.t
https://github.com/pjd/pjdfstest/blob/master/tests/link/08.t
https://github.com/pjd/pjdfstest/blob/master/tests/mkdir/07.t
https://github.com/pjd/pjdfstest/blob/master/tests/open/12.t
https://github.com/pjd/pjdfstest/blob/master/tests/rename/11.t
https://github.com/pjd/pjdfstest/blob/master/tests/rmdir/05.t
https://github.com/pjd/pjdfstest/blob/master/tests/symlink/07.t
https://github.com/pjd/pjdfstest/blob/master/tests/truncate/07.t
https://github.com/pjd/pjdfstest/blob/master/tests/unlink/07.t