From: Andi Kleen Date: Sun, 12 Mar 2006 22:52:59 +0000 (+0100) Subject: [PATCH] x86-64: Fix up handling of non canonical user RIPs X-Git-Tag: v2.6.16~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c33d4568aca9028a22857f94f5e0850012b6444b;p=pandora-kernel.git [PATCH] x86-64: Fix up handling of non canonical user RIPs EM64T CPUs have somewhat weird error reporting for non canonical RIPs in SYSRET. We can't handle any exceptions there because the exception handler would end up running on the user stack which is unsafe. To avoid problems any code that might end up with a user touched pt_regs should return using int_ret_from_syscall. int_ret_from_syscall ends up using IRET, which allows safe exceptions. Cc: Ernie Petrides Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed