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  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 17 Aug 2011 21:47:02 +0200
From:	Arnd Bergmann <arnd@...db.de>
To:	Richard Kuo <rkuo@...eaurora.org>
Cc:	linux-kernel@...r.kernel.org, linux-hexagon@...r.kernel.org
Subject: Re: [patch 19/36] Hexagon: Add ptrace support

On Wednesday 17 August 2011 11:35:16 Richard Kuo wrote:
> +       switch (request) {
> +       case PTRACE_PEEKUSR:    /* read register specified by addr. */
> +               ret = ptrace_peekusr(child, addr, (void __user *) data);
> +               break;
> +       case PTRACE_POKETEXT:   /* write the word at location addr. */
> +       case PTRACE_POKEDATA:
> +               ret = generic_ptrace_pokedata(child, addr, data);
> +               break;
> +       case PTRACE_POKEUSR:    /* write register specified by addr. */
> +               ret = ptrace_pokeusr(child, addr, data);
> +               break;
> +       case PTRACE_GETREGS:
> +               ret = ptrace_getregs(child, (void __user *) data);
> +               break;
> +       case PTRACE_SETREGS:
> +               ret = ptrace_setregs(child, (void __user *) data);
> +               break;
> +       default:

I believe the current way to do this is to use regsets for everything,
see arch/openrisc/kernel/ptrace.c

	Arnd
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ