summaryrefslogtreecommitdiffstats
path: root/arch/x86_64
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-04-11 12:54:39 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-04-11 06:38:57 -0700
commit97a4d00388db4f0bfa37425b31d7d9751ea649db (patch)
tree3713eb2e7e69461108899b799b8030ae30cb2c14 /arch/x86_64
parent0fcd270901f731342df64816f277ae7adbd67130 (diff)
downloadop-kernel-dev-97a4d00388db4f0bfa37425b31d7d9751ea649db.zip
op-kernel-dev-97a4d00388db4f0bfa37425b31d7d9751ea649db.tar.gz
[PATCH] x86_64: Remove check for canonical RIP
As pointed out by Linus it is useless now because entry.S should handle it correctly in all cases. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/kernel/ptrace.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86_64/kernel/ptrace.c b/arch/x86_64/kernel/ptrace.c
index d44b2c1..da8e790 100644
--- a/arch/x86_64/kernel/ptrace.c
+++ b/arch/x86_64/kernel/ptrace.c
@@ -274,11 +274,6 @@ static int putreg(struct task_struct *child,
return -EIO;
value &= 0xffff;
break;
- case offsetof(struct user_regs_struct, rip):
- /* Check if the new RIP address is canonical */
- if (value >= TASK_SIZE_OF(child))
- return -EIO;
- break;
}
put_stack_long(child, regno - sizeof(struct pt_regs), value);
return 0;
OpenPOWER on IntegriCloud