mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* x86_64: PTRACE_[GS]ET_THREAD_AREA should be accepted
@ 2007-02-21 12:07 Paolo 'Blaisorblade' Giarrusso
  0 siblings, 0 replies; only message in thread
From: Paolo 'Blaisorblade' Giarrusso @ 2007-02-21 12:07 UTC (permalink / raw)
  To: stable; +Cc: Andi Kleen, Jeff Dike, linux-kernel, user-mode-linux-devel

This patch backports from 2.6.19 a fix to a 2.6.18 regression.

Like for PTRACE_OLDSETOPTIONS, we should fix PTRACE_[GS]ET_THREAD_AREA. This had
been done already for 2.6.19, so this is for 2.6.18-stable only.
This was tested with UML/32bit as API consumer, both before and after this
patch.

Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Index: linux-2.6.18/arch/x86_64/ia32/ptrace32.c
===================================================================
--- linux-2.6.18.orig/arch/x86_64/ia32/ptrace32.c
+++ linux-2.6.18/arch/x86_64/ia32/ptrace32.c
@@ -241,6 +241,8 @@ asmlinkage long sys32_ptrace(long reques
 	case PTRACE_SYSCALL:
 	case PTRACE_OLDSETOPTIONS:
 	case PTRACE_SETOPTIONS:
+	case PTRACE_SET_THREAD_AREA:
+	case PTRACE_GET_THREAD_AREA:
 		return sys_ptrace(request, pid, addr, data); 
 
 	default:



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

only message in thread, other threads:[~2007-02-21 12:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-21 12:07 x86_64: PTRACE_[GS]ET_THREAD_AREA should be accepted Paolo 'Blaisorblade' Giarrusso

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®