From: Stephen Bertram via ltp <ltp@lists.linux.it>
To: ltp@lists.linux.it
Cc: Stephen Bertram <sbertram@redhat.com>
Subject: [LTP] [PATCH v3] accept03/tst_fd: Harden parallel runs against shared path races
Date: Wed, 4 Nov 2026 15:35:50 -0500 [thread overview]
Message-ID: <20261104203555.475536-1-sbertram@redhat.com> (raw)
In-Reply-To: <20261104164638.407069-1-sbertram@redhat.com>
From: Stephen Bertram <sbertram@redhat.com>
TST_FD_FOREACH in accept03, epoll_pwait06, ioctl_pidfd01, and
splice07 creates fixed fd_file and fd_dir names in the current
directory. Parallel runs that share that directory race on those
names. Set .needs_tmpdir so each run gets its own directory.
Signed-off-by: Stephen Bertram <sbertram@redhat.com>
---
testcases/kernel/syscalls/accept/accept03.c | 1 +
testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c | 1 +
testcases/kernel/syscalls/ioctl/ioctl_pidfd01.c | 1 +
testcases/kernel/syscalls/splice/splice07.c | 1 +
4 files changed, 4 insertions(+)
diff --git a/testcases/kernel/syscalls/accept/accept03.c b/testcases/kernel/syscalls/accept/accept03.c
index bc472397d..dea4988cf 100644
--- a/testcases/kernel/syscalls/accept/accept03.c
+++ b/testcases/kernel/syscalls/accept/accept03.c
@@ -55,4 +55,5 @@ static void verify_accept(void)
static struct tst_test test = {
.test_all = verify_accept,
+ .needs_tmpdir = 1,
};
diff --git a/testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c b/testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c
index e12d9d394..b30b7289b 100644
--- a/testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c
+++ b/testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c
@@ -78,6 +78,7 @@ static void cleanup(void)
static struct tst_test test = {
.test_all = run,
+ .needs_tmpdir = 1,
.setup = setup,
.cleanup = cleanup,
.test_variants = TEST_VARIANTS,
diff --git a/testcases/kernel/syscalls/ioctl/ioctl_pidfd01.c b/testcases/kernel/syscalls/ioctl/ioctl_pidfd01.c
index 95c0e8f3f..629bc2a1e 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl_pidfd01.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl_pidfd01.c
@@ -56,6 +56,7 @@ static void setup(void)
static struct tst_test test = {
.test_all = run,
+ .needs_tmpdir = 1,
.setup = setup,
.forks_child = 1,
.bufs = (struct tst_buffers []) {
diff --git a/testcases/kernel/syscalls/splice/splice07.c b/testcases/kernel/syscalls/splice/splice07.c
index c750a14bf..c42e7ecd3 100644
--- a/testcases/kernel/syscalls/splice/splice07.c
+++ b/testcases/kernel/syscalls/splice/splice07.c
@@ -69,4 +69,5 @@ static void verify_splice(void)
static struct tst_test test = {
.test_all = verify_splice,
+ .needs_tmpdir = 1,
};
--
2.55.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-11-04 20:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 14:46 [LTP] [PATCH v1] accept03/tst_fd: Harden parallel runs against shared path races Stephen Bertram via ltp
2026-11-04 15:14 ` Cyril Hrubis
2026-11-04 16:46 ` [LTP] [PATCH v2] " Stephen Bertram via ltp
2026-11-04 18:32 ` [LTP] [PATCH v2] accept03/tst_fd: Harden parallel runs against Petr Vorel
2026-11-05 10:33 ` Cyril Hrubis
2026-11-04 19:00 ` [LTP] accept03/tst_fd: Harden parallel runs against shared path races linuxtestproject.agent
2026-11-04 20:35 ` Stephen Bertram via ltp [this message]
2026-11-05 0:38 ` linuxtestproject.agent
2026-11-06 12:19 ` [LTP] [PATCH v3] " Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261104203555.475536-1-sbertram@redhat.com \
--to=ltp@lists.linux.it \
--cc=sbertram@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox