On Mon, Aug 17, 2026 at 12:16:10PM +0100, Christian Loehle wrote:
> Syscall User Dispatch is unavailable on architectures without generic
> syscall entry. Such architectures return -EINVAL for otherwise valid SUD
> prctl requests, causing sud_test to report failures.
> 
> This also prevents bad_prctl_param from providing useful coverage. The
> unsupported stub returns EINVAL before argument validation, so valid
> operations fail and requests expected to fail with EFAULT return EINVAL.
> 
> Probe SUD with a valid disabled configuration at the start of each test
> and skip when the kernel returns EINVAL. Preserve failures for unexpected
> errors and continue to run the full test on supported kernels.
> 

I suppose we should at least be testing for the EINVAL when not
supported, so this makes sense vs skipping the entire suite.

> Fixes: 179ef035992e ("selftests: Add kselftest for syscall user dispatch")
> Signed-off-by: Christian Loehle <[email protected]>

Reviewed-by: Gregory Price (Meta) <[email protected]>


Reply via email to