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/sysca...
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.