ACK: [B][C][SRU][PATCH 0/1] selftests/seccomp: Enhance per-arch ptrace syscall skip tests
Connor Kuehl
connor.kuehl at canonical.com
Mon Jun 3 18:24:31 UTC 2019
On 5/16/19 3:20 AM, Po-Hsu Lin wrote:
> BugLink: https://bugs.launchpad.net/bugs/1812796
>
> == SRU Justification ==
> The TRACE_syscall.ptrace_syscall_dropped test in seccomp from
> ubuntu_kernel_selftests will fail on a Power8 node with B/C kernel.
>
> [ RUN ] TRACE_syscall.ptrace_syscall_dropped
> seccomp_bpf.c:1808:TRACE_syscall.ptrace_syscall_dropped:Expected 1 (1) == syscall(286) (18446744073709551615)
> TRACE_syscall.ptrace_syscall_dropped: Test failed at step #13
> [ FAIL ] TRACE_syscall.ptrace_syscall_dropped
>
> == Fix ==
> * ed5f1326 (selftests/seccomp: Enhance per-arch ptrace syscall skip tests)
>
> This patch can be cherry-picked into B/C, and it's already in Disco.
> The ptrace_syscall_dropped will be changed into ptrace_syscall_faked,
> and a new ptrace_syscall_errno test will be added.
>
> == Test ==
> Patch tested with different arch (amd64 / power8 / arm64 / i386), the
> new test will pass on them except for PowerPC.
>
> Although the faked (bug 1829363) and errno (bug 1829359) test will fail
> on PowerPC, it's actually helping us to nail down a real issue in our
> kernel.
>
> == Regression Potential ==
> Low, changes limited to the testing tool in the kernel.
>
> Kees Cook (1):
> selftests/seccomp: Enhance per-arch ptrace syscall skip tests
>
> tools/testing/selftests/seccomp/seccomp_bpf.c | 72 +++++++++++++++++++++------
> 1 file changed, 57 insertions(+), 15 deletions(-)
>
Acked-by: Connor Kuehl <connor.kuehl at canonical.com>
--
Connor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 5950 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20190603/169f331e/attachment.key>
More information about the kernel-team
mailing list