* [LTP] [PATCH] syscall: set FORK in tst_sig for some old tests
@ 2026-08-13 2:32 Li Wang
2026-08-13 4:13 ` [LTP] " linuxtestproject.agent
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Li Wang @ 2026-08-13 2:32 UTC (permalink / raw)
To: ltp; +Cc: Li Wang
From: Li Wang <liwang@hygon.cn>
Since commit d90d2004657b ("lib: Use backoff polling to wait for loop
device nodes") use TST_RETRY_FN_EXP_BACKOFF(), which calls tst_multiply_timeout().
That in turn reaches tst_has_slow_kconfig() -> tst_kconfig_read() ->
popen("zcat /proc/config.gz") to read the kernel config.
popen() forks a child, and that child exits the SIGCHLD is reported
as an unexpected signal by the tst_sig(NOFORK) handler:
umount2_01 1 TBROK : tst_sig.c:232: unexpected signal SIGCHLD(17) received
Since these tests now genuinely fork (indirectly via popen), declaring
FORK matches their actual behavior and lets the handler tolerate the
child's SIGCHLD. This is a minimal fix that preserves the retry logic.
These are old-API tests that will eventually be converted to the new
tst_test API and this issue disappears entirely. The one-line FORK
change is a low-cost bridge until then.
Fixes: d90d2004657b ("lib: Use backoff polling to wait for loop device nodes")
Signed-off-by: Li Wang <liwang@hygon.cn>
---
Notes:
This is a temporary solution for the regression, I will convert
these old tests to the new API next few days.
testcases/kernel/syscalls/linkat/linkat02.c | 2 +-
testcases/kernel/syscalls/mknodat/mknodat02.c | 2 +-
testcases/kernel/syscalls/rename/rename11.c | 2 +-
testcases/kernel/syscalls/renameat/renameat01.c | 2 +-
testcases/kernel/syscalls/umount2/umount2_01.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/testcases/kernel/syscalls/linkat/linkat02.c b/testcases/kernel/syscalls/linkat/linkat02.c
index 273587271..6dfa7cfb5 100644
--- a/testcases/kernel/syscalls/linkat/linkat02.c
+++ b/testcases/kernel/syscalls/linkat/linkat02.c
@@ -140,7 +140,7 @@ static void setup(void)
{
tst_require_root();
- tst_sig(NOFORK, DEF_HANDLER, cleanup);
+ tst_sig(FORK, DEF_HANDLER, cleanup);
tst_tmpdir();
diff --git a/testcases/kernel/syscalls/mknodat/mknodat02.c b/testcases/kernel/syscalls/mknodat/mknodat02.c
index 2f7c56f00..89cfc5978 100644
--- a/testcases/kernel/syscalls/mknodat/mknodat02.c
+++ b/testcases/kernel/syscalls/mknodat/mknodat02.c
@@ -107,7 +107,7 @@ static void setup(void)
tst_require_root();
- tst_sig(NOFORK, DEF_HANDLER, cleanup);
+ tst_sig(FORK, DEF_HANDLER, cleanup);
tst_tmpdir();
diff --git a/testcases/kernel/syscalls/rename/rename11.c b/testcases/kernel/syscalls/rename/rename11.c
index 8ff9f7d38..26e324d64 100644
--- a/testcases/kernel/syscalls/rename/rename11.c
+++ b/testcases/kernel/syscalls/rename/rename11.c
@@ -90,7 +90,7 @@ static void setup(void)
{
int i;
- tst_sig(NOFORK, DEF_HANDLER, cleanup);
+ tst_sig(FORK, DEF_HANDLER, cleanup);
tst_require_root();
diff --git a/testcases/kernel/syscalls/renameat/renameat01.c b/testcases/kernel/syscalls/renameat/renameat01.c
index 72e72b481..f9ed3a9a7 100644
--- a/testcases/kernel/syscalls/renameat/renameat01.c
+++ b/testcases/kernel/syscalls/renameat/renameat01.c
@@ -134,7 +134,7 @@ static void setup(void)
tst_require_root();
- tst_sig(NOFORK, DEF_HANDLER, cleanup);
+ tst_sig(FORK, DEF_HANDLER, cleanup);
tst_tmpdir();
diff --git a/testcases/kernel/syscalls/umount2/umount2_01.c b/testcases/kernel/syscalls/umount2/umount2_01.c
index 274409ef3..c6496e306 100644
--- a/testcases/kernel/syscalls/umount2/umount2_01.c
+++ b/testcases/kernel/syscalls/umount2/umount2_01.c
@@ -67,7 +67,7 @@ static void setup(void)
{
tst_require_root();
- tst_sig(NOFORK, DEF_HANDLER, NULL);
+ tst_sig(FORK, DEF_HANDLER, NULL);
tst_tmpdir();
--
2.55.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [LTP] syscall: set FORK in tst_sig for some old tests
2026-08-13 2:32 [LTP] [PATCH] syscall: set FORK in tst_sig for some old tests Li Wang
@ 2026-08-13 4:13 ` linuxtestproject.agent
2026-08-13 6:14 ` [LTP] [PATCH] " Avinesh Kumar via ltp
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: linuxtestproject.agent @ 2026-08-13 4:13 UTC (permalink / raw)
To: Li Wang; +Cc: ltp
Hi Li,
On Aug 13, 2026, Li Wang wrote:
> syscall: set FORK in tst_sig for some old tests
Verdict - Reviewed
---
Note:
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LTP] [PATCH] syscall: set FORK in tst_sig for some old tests
2026-08-13 2:32 [LTP] [PATCH] syscall: set FORK in tst_sig for some old tests Li Wang
2026-08-13 4:13 ` [LTP] " linuxtestproject.agent
@ 2026-08-13 6:14 ` Avinesh Kumar via ltp
2026-08-13 6:26 ` Petr Vorel
2026-08-13 6:19 ` Wake Liu via ltp
2026-08-13 6:25 ` Andrea Cervesato via ltp
3 siblings, 1 reply; 9+ messages in thread
From: Avinesh Kumar via ltp @ 2026-08-13 6:14 UTC (permalink / raw)
To: Li Wang; +Cc: ltp, Li Wang
Hi Li,
Thank you for addressing this.
Reviewed-by: Avinesh Kumar <avinesh.kumar@suse.com>
Petr,
I think we should use this solution instead of reverting the patch.
Regards,
Avinesh
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LTP] [PATCH] syscall: set FORK in tst_sig for some old tests
2026-08-13 2:32 [LTP] [PATCH] syscall: set FORK in tst_sig for some old tests Li Wang
2026-08-13 4:13 ` [LTP] " linuxtestproject.agent
2026-08-13 6:14 ` [LTP] [PATCH] " Avinesh Kumar via ltp
@ 2026-08-13 6:19 ` Wake Liu via ltp
2026-08-13 6:25 ` Andrea Cervesato via ltp
3 siblings, 0 replies; 9+ messages in thread
From: Wake Liu via ltp @ 2026-08-13 6:19 UTC (permalink / raw)
To: Li Wang; +Cc: Wake Liu, ltp
Hi Li, Petr, Avinesh,
Thanks Li for the quick analysis and for proposing this patch.
I agree that this approach is much better than reverting d90d2004657b.
Reviewed-by: Wake Liu <wakel@google.com>
Best regards,
Wake
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LTP] [PATCH] syscall: set FORK in tst_sig for some old tests
2026-08-13 2:32 [LTP] [PATCH] syscall: set FORK in tst_sig for some old tests Li Wang
` (2 preceding siblings ...)
2026-08-13 6:19 ` Wake Liu via ltp
@ 2026-08-13 6:25 ` Andrea Cervesato via ltp
3 siblings, 0 replies; 9+ messages in thread
From: Andrea Cervesato via ltp @ 2026-08-13 6:25 UTC (permalink / raw)
To: Li Wang; +Cc: ltp, Li Wang
Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LTP] [PATCH] syscall: set FORK in tst_sig for some old tests
2026-08-13 6:14 ` [LTP] [PATCH] " Avinesh Kumar via ltp
@ 2026-08-13 6:26 ` Petr Vorel
2026-08-13 6:45 ` Li Wang
0 siblings, 1 reply; 9+ messages in thread
From: Petr Vorel @ 2026-08-13 6:26 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp, Li Wang
Hi all,
> Hi Li,
> Thank you for addressing this.
Li, thanks for fixing it!
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Tested-by: Petr Vorel <pvorel@suse.cz>
> Reviewed-by: Avinesh Kumar <avinesh.kumar@suse.com>
> Petr,
> I think we should use this solution instead of reverting the patch.
+1, thanks for a notification
Kind regards,
Petr
> Regards,
> Avinesh
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LTP] [PATCH] syscall: set FORK in tst_sig for some old tests
2026-08-13 6:26 ` Petr Vorel
@ 2026-08-13 6:45 ` Li Wang
2026-08-13 6:50 ` Petr Vorel
0 siblings, 1 reply; 9+ messages in thread
From: Li Wang @ 2026-08-13 6:45 UTC (permalink / raw)
To: Petr Vorel; +Cc: ltp, Li Wang
Hi Petr, All,
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
> Tested-by: Petr Vorel <pvorel@suse.cz>
Patch merged! Thanks~
--
Regards,
Li Wang
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LTP] [PATCH] syscall: set FORK in tst_sig for some old tests
2026-08-13 6:45 ` Li Wang
@ 2026-08-13 6:50 ` Petr Vorel
2026-08-13 9:12 ` Li Wang
0 siblings, 1 reply; 9+ messages in thread
From: Petr Vorel @ 2026-08-13 6:50 UTC (permalink / raw)
To: Avinesh Kumar, Li Wang, ltp, Andrea Cervesato
Hi Li,
> Hi Petr, All,
> > Reviewed-by: Petr Vorel <pvorel@suse.cz>
> > Tested-by: Petr Vorel <pvorel@suse.cz>
> Patch merged! Thanks~
Thanks for fixing it!
very nit: there could have been
Reported-by: Avinesh Kumar <avinesh.kumar@suse.com>
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LTP] [PATCH] syscall: set FORK in tst_sig for some old tests
2026-08-13 6:50 ` Petr Vorel
@ 2026-08-13 9:12 ` Li Wang
0 siblings, 0 replies; 9+ messages in thread
From: Li Wang @ 2026-08-13 9:12 UTC (permalink / raw)
To: Petr Vorel, Avinesh Kumar; +Cc: ltp, Li Wang
Hi Avinesh, Petr,
> > Patch merged! Thanks~
>
> Thanks for fixing it!
> very nit: there could have been
> Reported-by: Avinesh Kumar <avinesh.kumar@suse.com>
That's true, apologies for my carelessness.
--
Regards,
Li Wang
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-08-13 9:13 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-13 2:32 [LTP] [PATCH] syscall: set FORK in tst_sig for some old tests Li Wang
2026-08-13 4:13 ` [LTP] " linuxtestproject.agent
2026-08-13 6:14 ` [LTP] [PATCH] " Avinesh Kumar via ltp
2026-08-13 6:26 ` Petr Vorel
2026-08-13 6:45 ` Li Wang
2026-08-13 6:50 ` Petr Vorel
2026-08-13 9:12 ` Li Wang
2026-08-13 6:19 ` Wake Liu via ltp
2026-08-13 6:25 ` Andrea Cervesato via ltp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox