Commit Graph
5 Commits
Author SHA1 Message Date
Thomas Weißschuh 2a369c4942 kselftest/arm64: Use syscall() macro over nolibc my_syscall()
The my_syscall*() macros are internal implementation details of nolibc.
Nolibc also provides the regular syscall(2), which is also a macro
and directly expands to the correct my_syscall().

Use syscall() instead.

As a side-effect this fixes some return value checks, as my_syscall()
returns the raw value as set by the kernel and does not set errno.

Signed-off-by: Thomas Weißschuh <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
2026-01-22 11:21:09 +00:00
Thomas Weißschuh a985fe6383 kselftest/arm64/gcs: Use nolibc's getauxval()
Nolibc now does have getauxval(), use it.

Signed-off-by: Thomas Weißschuh <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
2025-09-08 15:54:39 +01:00
Thomas Weißschuh 740cdafd0d kselftest/arm64/gcs: Correctly check return value when disabling GCS
The return value was not assigned to 'ret', so the check afterwards
does not do anything.

Fixes: 3d37d4307e ("kselftest/arm64: Add very basic GCS test program")
Signed-off-by: Thomas Weißschuh <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
2025-09-08 15:54:39 +01:00
Mark Brown 1536aa0fb1 kselftest/arm64: Add a test for vfork() with GCS
Ensure that we've got at least some coverage of the special cases around
vfork() by adding a test case in basic-gcs doing the same thing as the
plain fork() one - vfork(), do a few checks and then return to the parent.

Signed-off-by: Mark Brown <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Thomas Weißschuh <[email protected]>
2025-07-04 13:26:14 +02:00
Mark Brown 3d37d4307e kselftest/arm64: Add very basic GCS test program
This test program just covers the basic GCS ABI, covering aspects of the
ABI as standalone features without attempting to integrate things.

Reviewed-by: Thiago Jung Bauermann <[email protected]>
Tested-by: Thiago Jung Bauermann <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
2024-10-04 12:04:44 +01:00