]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/mm: Enable pkey_sighandler_tests on arm64
authorKevin Brodsky <kevin.brodsky@arm.com>
Tue, 29 Oct 2024 14:45:39 +0000 (14:45 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 4 Nov 2024 16:31:26 +0000 (16:31 +0000)
commit49f59573e9e06093ba23caf4ea1641b16e7e497e
tree5988cf3565693783585618c9dc140e09639be5b6
parent6e182dc9f2680681ffb0b6d9757927f1bd321b38
selftests/mm: Enable pkey_sighandler_tests on arm64

pkey_sighandler_tests.c makes raw syscalls using its own helper,
syscall_raw(). One of those syscalls is clone, which is problematic
as every architecture has a different opinion on the order of its
arguments.

To complete arm64 support, we therefore add an appropriate
implementation in syscall_raw(), and introduce a clone_raw() helper
that shuffles arguments as needed for each arch.

Having done this, we enable building pkey_sighandler_tests for arm64
in the Makefile.

Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
Link: https://lore.kernel.org/r/20241029144539.111155-6-kevin.brodsky@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/mm/Makefile
tools/testing/selftests/mm/pkey_sighandler_tests.c