Skip to content

selftests: Skip SUD tests when unsupported

Christian Loehle linux-kselftest lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/23 patches 0 repliesNew
  2. v1 posting 1/23 patches 7 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3selftests/ptrace: Skip get_set_sud if SUD is unsupportedtools/testing/selftests/ptrace/get_set_sud.c+8 -00 replies
2/3selftests/syscall_user_dispatch: Skip tests if SUD is unsupportedtools/testing/selftests/syscall_user_dispatch/sud_test.c+36 -00 replies
3/3selftests/syscall_user_dispatch: Skip benchmark if SUD is unsupportedtools/testing/selftests/syscall_user_dispatch/sud_benchmark.c+9 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchGregory Price (Meta)Gabriel Krisman Bertazi
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH RESEND 0/3] selftests: Skip SUD tests when unsupported

Hi Shuah,
the series is a resend which has picked up all the relevant tags and is ready to apply!
--

Syscall User Dispatch (SUD) is unavailable on architectures without generic syscall entry. Such architectures return -EINVAL for otherwise valid SUD prctl and ptrace requests, which the SUD selftests currently report as failures.

Probe SUD with a valid disabled configuration and skip the affected tests when that probe returns EINVAL. Unexpected errors remain failures, and the existing coverage is unchanged on kernels that support SUD.

Original posting:
https://lore.kernel.org/lkml/[email protected]/

Christian Loehle (3):
selftests/ptrace: Skip get_set_sud if SUD is unsupported selftests/syscall_user_dispatch: Skip tests if SUD is unsupported selftests/syscall_user_dispatch: Skip benchmark if SUD is unsupported

 tools/testing/selftests/ptrace/get_set_sud.c  |  8 +++++
 .../syscall_user_dispatch/sud_benchmark.c     |  9 +++++
 .../syscall_user_dispatch/sud_test.c          | 36 +++++++++++++++++++
 3 files changed, 53 insertions(+)

base-commit: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907

Signature · 1 line
2.34.1