Thread (20 messages) flat view 20 messages, 3 authors, 2015-07-17

Re: [RFC PATCH 09/12] powerpc/kernel: Add SIG_SYS support for compat tasks

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2015-07-16 03:38:46
Also in: lkml

On Wed, 2015-07-15 at 08:12 -0700, Kees Cook wrote:
On Wed, Jul 15, 2015 at 12:37 AM, Michael Ellerman [off-list ref] wrote:
quoted
diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c
index c5abe7fd7590..b2374c131340 100644
--- a/tools/testing/selftests/seccomp/seccomp_bpf.c
+++ b/tools/testing/selftests/seccomp/seccomp_bpf.c
@@ -645,6 +645,10 @@ static struct siginfo TRAP_info;
 static volatile int TRAP_nr;
 static void TRAP_action(int nr, siginfo_t *info, void *void_context)
 {
+       fprintf(stderr, "in TRAP_action\n");
+       fprintf(stderr, "info->si_call_addr %p\n", info->si_call_addr);
+       fprintf(stderr, "info->si_syscall %u\n", info->si_syscall);
+       fprintf(stderr, "info->si_arch %u\n", info->si_arch);
        memcpy(&TRAP_info, info, sizeof(TRAP_info));
        TRAP_nr = nr;
 }
This chunk looks like left-over debugging?
Urgh yep, that's ugly. Thanks for noticing.

Will remove before merging :)

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help