[PATCH] 32-bit ptrace geteventmsg fix

John Engel jhe at us.ibm.com
Thu Aug 5 07:02:43 EST 2004


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>


--- linux-2.6.5-7.97/arch/ppc64/kernel/ptrace32.c.orig  2004-07-29
13:52:42.000000000 -0500
+++ linux-2.6.5-7.97/arch/ppc64/kernel/ptrace32.c       2004-07-29
13:43:02.000000000 -0500
@@ -413,7 +413,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