Skip to contentSkip to conversation

Fix PTRACE_GETEVENTMSG ia32 emulation

PATCH Andreas Schwab 1 participant 2 messages Jan 10, 2005

lore
Share & tools
lore
#0 lore raw

This patch fixes PTRACE_GETEVENTMSG for the ia32 emulation. The parameter is a pointer, thus needs to be converted.

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."
#1 lore raw

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.

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."