PTRACE: compat_sys_ptrace(PTRACE_TRACEME) lacks arch_ptrace_attach()?

From: Tetsuo Handa
Date: Wed May 25 2011 - 23:08:06 EST


I noticed that commit 6ea6dd93 "ptrace: Call arch_ptrace_attach() when
request=PTRACE_TRACEME" added

if (!ret)
arch_ptrace_attach(current);

call to sys_ptrace(PTRACE_TRACEME) but commit c269f196 "x86: compat_sys_ptrace"
did not add that call to compat_sys_ptrace(PTRACE_TRACEME).

If compat_sys_ptrace(PTRACE_ATTACH) needs arch_ptrace_attach(), maybe
compat_sys_ptrace(PTRACE_TRACEME) needs arch_ptrace_attach() as well.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/