[LTP] [RFC PATCH v1 1/1] splice07.c: Skip invalid splice() tests involving memfd secret
Andrea Cervesato
andrea.cervesato@suse.com
Tue Jul 15 10:01:02 CEST 2025
On 7/10/25 9:43 AM, Jan Polensky wrote:
>> Another option maybe we can add this error into exp_errnos, i guess can
>> fix your issue?
>>
>> for example:
>> const int exp_errnos[] = {EBADF, EINVAL};
>> + const int exp_errnos[] = {EBADF, EINVAL, EACCES};
>>
> I’m concerned that this approach might make the tests too unspecific.
>
> Associating specific combinations with corresponding error codes would
> provide much more precise results. However, given the vast number of
> possible combinations, such an effort seems hardly practical.
A specific approach for the TST_FD_MEMFD_SECRET is probably required,
because we don't really want to test EACCESS for all the other file
descriptions. That might hide a bug in the kernel. We need to create a
new test, since this one is only checking for EBADF/EINVAL according to
the description.
- Andrea
More information about the ltp
mailing list