From 2c804457879c2dd76823d1b47f1a1eba5073727c Mon Sep 17 00:00:00 2001 From: Stefan Liebler Date: Tue, 11 Jul 2017 10:37:03 +0200 Subject: S390: Fix tst-ptrace-singleblock if kernel does not support PTRACE_SINGLEBLOCK. The request PTRACE_SINGLEBLOCK was introduced in Linux 3.15. Thus the ptrace call will fail on older kernels. Thus the test is now testing PTRACE_SINGLEBLOCK with data argument pointing to a buffer on stack which is assumed to fail. If the request would be interpreted as PTRACE_GETREGS, then the ptrace call will not fail and the regs are written to buf. If we run with a kernel with support for PTRACE_SINGLEBLOCK a ptrace call with data=NULL, returns zero with no error. If we run with a kernel without support for PTRACE_SINGLEBLOCK a ptrace call with data=NULL reports an error. In the latter case, the test is just continuing with PTRACE_CONT. ChangeLog: * sysdeps/unix/sysv/linux/s390/tst-ptrace-singleblock.c: Support running on kernels without PTRACE_SINGLEBLOCK. --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index ab216c77ed..71d027ddad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-07-11 Stefan Liebler + + * sysdeps/unix/sysv/linux/s390/tst-ptrace-singleblock.c: + Support running on kernels without PTRACE_SINGLEBLOCK. + 2017-07-10 H.J. Lu [BZ #21742] -- cgit v1.2.3