diff options
| author | Stian Halseth <stian@itx.no> | 2026-09-02 09:27:45 +0200 |
|---|---|---|
| committer | Andreas Larsson <andreas@gaisler.com> | 2026-10-09 16:54:18 +0200 |
| commit | 077e15cf545acc03c14582e33b3ca2af2a763eff (patch) | |
| tree | 2031602b78dca6f586821eee8d468c06736016a4 /tools/include/uapi/linux | |
| parent | 60b5c9eda5a37449a8611bdd7c613f4aa827da00 (diff) | |
| download | linux-next-077e15cf545acc03c14582e33b3ca2af2a763eff.tar.gz linux-next-077e15cf545acc03c14582e33b3ca2af2a763eff.zip | |
selftests/seccomp: add sparc64 support
sparc64 now selects HAVE_ARCH_SECCOMP_FILTER, so teach seccomp_bpf
how to read and write its registers: the syscall number lives in %g1
and the return value in %o0. The NT_PRSTATUS regset appends the
register window read back from the tracee's stack and has no exported
layout, so use the sparc-specific PTRACE_GETREGS64/PTRACE_SETREGS64
requests instead, which transfer the uapi struct pt_regs directly.
Errors are signaled by the carry bit in tstate with a positive errno
value in %o0, so provide a SYSCALL_RET_SET that maintains both, and
mark the arch SYSCALL_RET_SET_ON_PTRACE_EXIT since a return value
poked at entry would be overwritten by the syscall skip path, as on
powerpc.
Passes 95 of 95 on an UltraSPARC T4-1 (16 skipped for missing
optional features such as uprobes).
Link: https://github.com/sparclinux/issues/issues/11
Signed-off-by: Stian Halseth <stian@itx.no>
Reviewed-by: Kees Cook <kees@kernel.org>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/20260902072745.3412940-3-stian@itx.no
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Diffstat (limited to 'tools/include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
