[LTP] [PATCH v1] accept03/tst_fd: Harden parallel runs against shared path races

Cyril Hrubis chrubis@suse.cz
Wed Nov 4 16:14:22 CET 2026


Hi!
> Concurrent syscall runs can TBROK in tst_fd when multiple processes
> race on fixed fd_file/fd_dir names (unlink ENOENT). Use pid-unique
> paths with O_EXCL, distinct names for the file and O_PATH cases, and
> give accept03 a private tmpdir.

If we give the tests private tmpdir we do not need the pid unique
filenames. There is no point in doing both.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list