[LTP] 6.18.0-rc1: LTP syscalls ioctl_pidfd05: TFAIL: ioctl(pidfd, PIDFD_GET_INFO_SHORT, info_invalid) expected EINVAL: ENOTTY (25)
Cyril Hrubis
chrubis@suse.cz
Fri Oct 17 11:25:10 CEST 2025
Hi!
> > The LTP syscalls ioctl_pidfd05 test failed due to following error on
> > the Linux mainline
> > kernel v6.18-rc1-104-g7ea30958b305 on the arm64, arm and x86_64.
> >
> > The Test case is expecting to fail with EINVAL but found ENOTTY.
>
> [Not a kernel regression]
>
> From the recent LTP upgrade we have newly added test cases,
> ioctl_pidfd()
>
> The test case is meant to test,
>
> Add ioctl_pidfd05 test
> Verify that ioctl() raises an EINVAL error when PIDFD_GET_INFO
> is used.
> This happens when:
> - info parameter is NULL
> - info parameter is providing the wrong size
>
> However, we need to investigate the reason for failure.
>
> Test case: https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/syscalls/ioctl/ioctl_pidfd05.c
Already fixed in:
commit 00c3e947cece63ce81cdaf12b5a2071984aa7815
Author: Avinesh Kumar <akumar@suse.de>
Date: Thu Sep 25 10:19:11 2025 +0200
Introduce ioctl_pidfd_get_info_supported() function
Check if ioctl(PIDFD_GET_INFO) is implemented or not
before proceeding in ioctl_pidfd05 test.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list