Fix PTRACE_GETEVENTMSG ia32 emulation
This patch fixes PTRACE_GETEVENTMSG for the ia32 emulation. The parameter is a pointer, thus needs to be converted.
Signed-off-by Andreas Schwab <[email protected]>
arch/ia64/ia32/sys_ia32.c +4 -0
@@ -1894,6 +1894,10 @@ sys32_ptrace (int request, pid_t pid, un compat_ptr(data));break ; +case PTRACE_GETEVENTMSG : + ret =put_user (child->ptrace_message, (unsigned int __user *)A (data)); +break ; +case PTRACE_SYSCALL :/* continue, stop after next syscall */ case PTRACE_CONT :/* restart after signal. */ case PTRACE_KILL :
Andreas.
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Sorry, I was accidentally using the old patch.
This patch fixes PTRACE_GETEVENTMSG for the ia32 emulation. The parameter is a pointer, thus needs to be converted.
Signed-off-by Andreas Schwab <[email protected]>
arch/ia64/ia32/sys_ia32.c +4 -0
@@ -1894,6 +1894,10 @@ sys32_ptrace (int request, pid_t pid, un compat_ptr(data));break ; +case PTRACE_GETEVENTMSG : + ret =put_user (child->ptrace_message, (unsigned int __user *)compat_ptr (data)); +break ; +case PTRACE_SYSCALL :/* continue, stop after next syscall */ case PTRACE_CONT :/* restart after signal. */ case PTRACE_KILL :
Andreas.
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."