[LTP] [PATCH v2 1/1] ioctl_pidfd06: Update kernel version
Jan Stancek
jstancek@redhat.com
Fri Apr 24 15:15:41 CEST 2026
On Fri, Apr 24, 2026 at 12:15 PM Petr Vorel <pvorel@suse.cz> wrote:
>
> 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;
lgtm as well,
Acked-by: Jan Stancek <jstancek@redhat.com>
> }
>
> --
> 2.53.0
>
More information about the ltp
mailing list