Re: [PATCH 11/15] selftests/seccomp: Remove SYSCALL_NUM_RET_SHARE_REG in favor of SYSCALL_RET_SET

2020-09-15 Thread Christian Brauner
On Sat, Sep 12, 2020 at 04:08:16AM -0700, Kees Cook wrote: > 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

[PATCH 11/15] selftests/seccomp: Remove SYSCALL_NUM_RET_SHARE_REG in favor of SYSCALL_RET_SET

2020-09-12 Thread Kees Cook
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