lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 16 Sep 2014 11:43:21 +0200 From: Tobias Klauser <tklauser@...tanz.ch> To: Ley Foon Tan <lftan@...era.com> Cc: linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org, lftan.linux@...il.com, cltang@...esourcery.com Subject: Re: [PATCH v3 26/29] nios2: ptrace support On 2014-09-08 at 11:22:37 +0200, Ley Foon Tan <lftan@...era.com> wrote: > Add ptrace support for nios2. > > Signed-off-by: Ley Foon Tan <lftan@...era.com> > --- > arch/nios2/include/asm/ptrace.h | 33 +++++++ > arch/nios2/include/uapi/asm/ptrace.h | 120 ++++++++++++++++++++++++ > arch/nios2/kernel/ptrace.c | 176 +++++++++++++++++++++++++++++++++++ > 3 files changed, 329 insertions(+) > create mode 100644 arch/nios2/include/asm/ptrace.h > create mode 100644 arch/nios2/include/uapi/asm/ptrace.h > create mode 100644 arch/nios2/kernel/ptrace.c [...] > diff --git a/arch/nios2/kernel/ptrace.c b/arch/nios2/kernel/ptrace.c > new file mode 100644 > index 0000000..bcbf748 > --- /dev/null > +++ b/arch/nios2/kernel/ptrace.c [...] > +long arch_ptrace(struct task_struct *child, long request, unsigned long addr, > + unsigned long data) > +{ > + int ret = -EIO; > + > + pr_debug("REQ=%ld: ADDR =0x%lx, DATA=0x%lx)\n", request, addr, data); > + > + switch (request) { > + default: > + ret = ptrace_request(child, request, addr, data); > + break; > + } > + > + return ret; > +} This could be simplified to: long arch_ptrace(struct task_struct *child, long request, unsigned long addr, unsigned long data) { return ptrace_request(child, request, addr, data); } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists