Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 1/1] ioctl_pidfd06: Update kernel version
@ 2026-04-24 10:15 Petr Vorel
  2026-04-24 10:25 ` [LTP] " linuxtestproject.agent
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Petr Vorel @ 2026-04-24 10:15 UTC (permalink / raw)
  To: ltp

Kernel commit ab89060fbc92e ("pidfs: return -EREMOTE when PIDFD_GET_INFO
is called on another ns") from v7.0 was backported into stable/LTS
kernels v6.18.14 (7446125afb6d9) and v6.19.10 (2920abaf56c09).
Update errnos for these stable/LTS kernels (do not treat older behavior
as an error).

Follow-up: f630471a6520 ("ioctl_pidfd06: Select expected errno for PIDFD_GET_INFO across pidns")
Reported-by: Wei Gao <wegao@suse.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Alternative approach for Wei's fix:
https://patchwork.ozlabs.org/project/ltp/patch/20260406023538.14739-1-wegao@suse.com/
https://lore.kernel.org/ltp/20260406023538.14739-1-wegao@suse.com/

Changes v1->v2:
* Cover also 6.19.0..v6.19.9
* Add Follow-up: tag (not Fixme: tag), commit was correct at the time.

Link to v1:
https://patchwork.ozlabs.org/project/ltp/patch/20260424060543.462475-1-pvorel@suse.cz/
https://lore.kernel.org/ltp/20260424095900.GA500158@pevik/T/#t

 testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c b/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c
index 0f24d4741f..bc90aafd17 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c
@@ -54,7 +54,12 @@ static void setup(void)
 	if (!ioctl_pidfd_info_exit_supported())
 		tst_brk(TCONF, "PIDFD_INFO_EXIT is not supported by ioctl()");
 
-	if (tst_kvercmp(7, 0, 0) >= 0)
+	/*
+	 * ab89060fbc92e ("pidfs: return -EREMOTE when PIDFD_GET_INFO is called on another ns")
+	 * from v7.0, backported to v6.18.14 and v6.19.10.
+	 */
+	if (tst_kvercmp(6, 19, 10) >= 0 ||
+	    (tst_kvercmp(6, 18, 14) >= 0 && tst_kvercmp(6, 19, 0) < 0))
 		err_nr = EREMOTE;
 }
 
-- 
2.53.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [LTP] [PATCH 1/1] ioctl_pidfd06: Update kernel version
@ 2026-04-24  6:05 Petr Vorel
  2026-04-24  8:09 ` [LTP] " linuxtestproject.agent
  0 siblings, 1 reply; 8+ messages in thread
From: Petr Vorel @ 2026-04-24  6:05 UTC (permalink / raw)
  To: ltp

Kernel commit ab89060fbc92e ("pidfs: return -EREMOTE when PIDFD_GET_INFO
is called on another ns") from v7.0 was backported into stable/LTS
kernels v6.18.14 (7446125afb6d9) and v6.19.10 (2920abaf56c09).

Reported-by: Wei Gao <wegao@suse.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c b/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c
index 0f24d4741f..cc66d54cf4 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c
@@ -54,7 +54,7 @@ static void setup(void)
 	if (!ioctl_pidfd_info_exit_supported())
 		tst_brk(TCONF, "PIDFD_INFO_EXIT is not supported by ioctl()");
 
-	if (tst_kvercmp(7, 0, 0) >= 0)
+	if (tst_kvercmp(6, 18, 14) >= 0)
 		err_nr = EREMOTE;
 }
 
-- 
2.53.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-04-28  9:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-24 10:15 [LTP] [PATCH v2 1/1] ioctl_pidfd06: Update kernel version Petr Vorel
2026-04-24 10:25 ` [LTP] " linuxtestproject.agent
2026-04-24 13:15 ` [LTP] [PATCH v2 1/1] " Jan Stancek via ltp
2026-04-27  4:46 ` Li Wang
2026-04-28  8:59   ` Petr Vorel
  -- strict thread matches above, loose matches on Subject: below --
2026-04-24  6:05 [LTP] [PATCH " Petr Vorel
2026-04-24  8:09 ` [LTP] " linuxtestproject.agent
2026-04-24 10:01   ` Petr Vorel
2026-04-24 10:02     ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox