mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 10/22] UML - Fix a ptrace call
@ 2005-05-01 21:12 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2005-05-01 21:12 UTC (permalink / raw)
  To: torvalds; +Cc: akpm, linux-kernel

This fixes write_ldt_entry to treat userspace_pid as an array.

Signed-off-by: Jeff Dike <jdike@addtoit.com>

Index: linux-2.6.11/arch/um/sys-i386/ldt.c
===================================================================
--- linux-2.6.11.orig/arch/um/sys-i386/ldt.c	2005-04-13 18:20:01.000000000 -0400
+++ linux-2.6.11/arch/um/sys-i386/ldt.c	2005-04-13 18:20:27.000000000 -0400
@@ -25,7 +25,7 @@
 #endif
 
 #ifdef CONFIG_MODE_SKAS
-extern int userspace_pid;
+extern int userspace_pid[];
 
 #include "skas_ptrace.h"
 
@@ -56,7 +56,8 @@
 	ldt = ((struct ptrace_ldt) { .func	= func,
 				     .ptr	= buf,
 				     .bytecount = bytecount });
-	res = ptrace(PTRACE_LDT, userspace_pid, 0, (unsigned long) &ldt);
+#warning Need to look up userspace_pid by cpu
+	res = ptrace(PTRACE_LDT, userspace_pid[0], 0, (unsigned long) &ldt);
 	if(res < 0)
 		goto out;
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-01 21:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-01 21:12 [PATCH 10/22] UML - Fix a ptrace call Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®