]> err.no Git - linux-2.6/commitdiff
[PATCH] x86_64: Remove unprotected iret
authorJan Beulich <jbeulich@novell.com>
Wed, 11 Jan 2006 21:42:20 +0000 (22:42 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 12 Jan 2006 03:01:10 +0000 (19:01 -0800)
Make sure no iret can fault without attached recovery code.
Cannot happen in the normal case, but might be useful
with kernel debuggers

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/entry.S

index 9ff42041bb6b8b974a00be6c234bbaac31b3213e..bd21ebafaf66aa2cfe099d61daf631e17e69cc0d 100644 (file)
@@ -754,7 +754,7 @@ error_exit:
        jnz  retint_careful
        swapgs 
        RESTORE_ARGS 0,8,0                                              
-       iretq
+       jmp iret_label
        CFI_ENDPROC
 
 error_kernelspace: