diff options
author | Kees Cook <keescook@chromium.org> | 2020-09-12 13:08:16 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-09-19 10:00:03 +0200 |
commit | f04cf78bbfcd1fa5b1819613a5f354b228f36e03 (patch) | |
tree | 870931840bba40a7f96821e2767f41288b6b812e /tools/testing/selftests/.gitignore | |
parent | selftests/seccomp: Avoid redundant register flushes (diff) | |
download | linux-f04cf78bbfcd1fa5b1819613a5f354b228f36e03.tar.xz linux-f04cf78bbfcd1fa5b1819613a5f354b228f36e03.zip |
selftests/seccomp: Remove SYSCALL_NUM_RET_SHARE_REG in favor of SYSCALL_RET_SET
Instead of special-casing the specific case of shared registers, create
a default SYSCALL_RET_SET() macro (mirroring SYSCALL_NUM_SET()), that
writes to the SYSCALL_RET register. For architectures that can't set the
return value (for whatever reason), they can define SYSCALL_RET_SET()
without an associated SYSCALL_RET() macro. This also paves the way for
architectures that need to do special things to set the return value
(e.g. powerpc).
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/lkml/20200912110820.597135-12-keescook@chromium.org
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'tools/testing/selftests/.gitignore')
0 files changed, 0 insertions, 0 deletions