Skip to content
Commit 46138329 authored by Kees Cook's avatar Kees Cook
Browse files

selftests/seccomp: powerpc: Fix seccomp return value testing



On powerpc, the errno is not inverted, and depends on ccr.so being
set. Add this to a powerpc definition of SYSCALL_RET_SET().

Co-developed-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Link: https://lore.kernel.org/linux-kselftest/20200911181012.171027-1-cascardo@canonical.com/


Fixes: 5d83c2b3 ("selftests/seccomp: Add powerpc support")
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/lkml/20200912110820.597135-13-keescook@chromium.org


Reviewed-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent f04cf78b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment