diff -Naurp linux-2.6.18-rc6/arch/powerpc/kernel/ptrace.c linux-2.6.18-rc6-mod/arch/powerpc/kernel/ptrace.c --- linux-2.6.18-rc6/arch/powerpc/kernel/ptrace.c 2006-10-19 18:09:01.000000000 +0530 +++ linux-2.6.18-rc6-mod/arch/powerpc/kernel/ptrace.c 2006-10-19 18:11:37.000000000 +0530 @@ -406,7 +406,7 @@ long arch_ptrace(struct task_struct *chi case PPC_PTRACE_GETREGS: { /* Get GPRs 0 - 31. */ int i; unsigned long *reg = &((unsigned long *)child->thread.regs)[0]; - unsigned long __user *tmp = (unsigned long __user *)addr; + unsigned long __user *tmp = (unsigned long __user *)data; for (i = 0; i < 32; i++) { ret = put_user(*reg, tmp); @@ -421,7 +421,7 @@ long arch_ptrace(struct task_struct *chi case PPC_PTRACE_SETREGS: { /* Set GPRs 0 - 31. */ int i; unsigned long *reg = &((unsigned long *)child->thread.regs)[0]; - unsigned long __user *tmp = (unsigned long __user *)addr; + unsigned long __user *tmp = (unsigned long __user *)data; for (i = 0; i < 32; i++) { ret = get_user(*reg, tmp); @@ -436,7 +436,7 @@ long arch_ptrace(struct task_struct *chi case PPC_PTRACE_GETFPREGS: { /* Get FPRs 0 - 31. */ int i; unsigned long *reg = &((unsigned long *)child->thread.fpr)[0]; - unsigned long __user *tmp = (unsigned long __user *)addr; + unsigned long __user *tmp = (unsigned long __user *)data; flush_fp_to_thread(child); @@ -453,7 +453,7 @@ long arch_ptrace(struct task_struct *chi case PPC_PTRACE_SETFPREGS: { /* Get FPRs 0 - 31. */ int i; unsigned long *reg = &((unsigned long *)child->thread.fpr)[0]; - unsigned long __user *tmp = (unsigned long __user *)addr; + unsigned long __user *tmp = (unsigned long __user *)data; flush_fp_to_thread(child); diff -Naurp linux-2.6.18-rc6/arch/powerpc/kernel/ptrace32.c linux-2.6.18-rc6-mod/arch/powerpc/kernel/ptrace32.c --- linux-2.6.18-rc6/arch/powerpc/kernel/ptrace32.c 2006-10-19 18:09:01.000000000 +0530 +++ linux-2.6.18-rc6-mod/arch/powerpc/kernel/ptrace32.c 2006-10-19 18:11:41.000000000 +0530 @@ -345,7 +345,7 @@ long compat_sys_ptrace(int request, int case PPC_PTRACE_GETREGS: { /* Get GPRs 0 - 31. */ int i; unsigned long *reg = &((unsigned long *)child->thread.regs)[0]; - unsigned int __user *tmp = (unsigned int __user *)addr; + unsigned int __user *tmp = (unsigned int __user *)data; for (i = 0; i < 32; i++) { ret = put_user(*reg, tmp); @@ -360,7 +360,7 @@ long compat_sys_ptrace(int request, int case PPC_PTRACE_SETREGS: { /* Set GPRs 0 - 31. */ int i; unsigned long *reg = &((unsigned long *)child->thread.regs)[0]; - unsigned int __user *tmp = (unsigned int __user *)addr; + unsigned int __user *tmp = (unsigned int __user *)data; for (i = 0; i < 32; i++) { ret = get_user(*reg, tmp); @@ -375,7 +375,7 @@ long compat_sys_ptrace(int request, int case PPC_PTRACE_GETFPREGS: { /* Get FPRs 0 - 31. */ int i; unsigned long *reg = &((unsigned long *)child->thread.fpr)[0]; - unsigned int __user *tmp = (unsigned int __user *)addr; + unsigned int __user *tmp = (unsigned int __user *)data; flush_fp_to_thread(child); @@ -392,7 +392,7 @@ long compat_sys_ptrace(int request, int case PPC_PTRACE_SETFPREGS: { /* Get FPRs 0 - 31. */ int i; unsigned long *reg = &((unsigned long *)child->thread.fpr)[0]; - unsigned int __user *tmp = (unsigned int __user *)addr; + unsigned int __user *tmp = (unsigned int __user *)data; flush_fp_to_thread(child);