Hi,

the kernel selftests do not currently support glibc v2.35 and older.
This is primarily because glibc v2.36 added support for syscall API
functions such as fsopen, move_mount, fsmount, open_tree, and fsconfig,
and those API functions are now used in several tests.
As result, glibc v2.35 and older are no longer supported, at least not
for affected tests.

Historically the selftest framework implemented such functions with
wrappers named sys_<syscall>. This means that sys_<syscall> and <syscall>
functions are now used in parallel.

I see a number of possibilities to solve the problem.

1) Do nothing. Document somewhere that glibc v2.35 and older is not
   supported by the kernel selftests.
2) Document that glibc v2.35 and older is not supported, drop
   all wrappers implementing the sys_<syscall> functions, and rename
   the calling code to <syscall>.
3) Rename all calls to sys_<syscall> to <syscall> and modify the
   wrapper code to only implement those functions for glibc v2.35 and
   older.
4) Add defines to the existing wrapper code to also define <syscall>
   in addition to sys_<syscall>, and leave the code otherwise alone.

What would be the preferred solution ? My personal preference would be 3),
followed by 4).

Thanks,
Guenter


Reply via email to