[PATCH] 32-bit ptrace geteventmsg fix

Anton Blanchard anton at samba.org
Thu Aug 5 07:10:46 EST 2004


Hi John,

Looks good.

Anton

--

John Engel <jhe at us.ibm.com>:

Here's a fix for the 32-bit PTRACE_GETEVENTMSG ptrace call that handles
the passing of a 32-bit user address.  Please apply, thanks.

Signed-off-by: John Engel <jhe at us.ibm.com>
Signed-off-by: Anton Blanchard <anton at samba.org>

===== arch/ppc64/kernel/ptrace32.c 1.11 vs edited =====
--- 1.11/arch/ppc64/kernel/ptrace32.c	Thu Jun 10 16:21:41 2004
+++ edited/arch/ppc64/kernel/ptrace32.c	Thu Aug  5 07:08:01 2004
@@ -404,7 +404,9 @@
 		break;
 	}

-
+       case PTRACE_GETEVENTMSG:
+                ret = put_user(child->ptrace_message, (unsigned int __user *) data);
+                break;

 	default:
 		ret = ptrace_request(child, request, addr, data);

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list