Skip to contentSkip to conversation

x86_64: PTRACE_[GS]ET_THREAD_AREA should be accepted

PATCH Paolo 'Blaisorblade' Giarrusso 1 participant 1 message Feb 21, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

arch/x86_64/ia32/ptrace32.c +2 -0
Index: 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: