lkml.org 
[lkml]   [2008]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/1] system call notification with self_ptrace
From
Date
On Mon, 2008-09-08 at 14:02 +0200, Pierre Morel wrote:
>
> + if (is_self_ptracing(regs->gprs[2])) {
> + if (!entryexit) {
> + struct siginfo info;
> +
> + memset(&info, 0, sizeof(struct siginfo));
> + info.si_signo = SIGSYS;
> + info.si_code = SYS_SYSCALL;
> + info.si_errno = regs->gprs[2];
> + info.si_addr = (void *)regs->orig_gpr2;
> + send_sig_info(SIGSYS, &info, current);
> + regs->gprs[2] = -1;
> + }
> + return;
> + }

I see you didn't like my suggestions for consolidating some of these
repetitive code bits across all the architectures. Did you give that a
a shot? Would you like me to produce a patch on top of what you have
here before this gets merged into mm?

-- Dave



\
 
 \ /
  Last update: 2008-09-10 18:25    [W:0.139 / U:5.556 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site