[PATCH] x86_64: Report SIGSEGV for IRET faults
authorAndi Kleen <ak@suse.de>
Sat, 25 Mar 2006 15:31:55 +0000 (16:31 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 17:14:39 +0000 (09:14 -0800)
tcsh is not happy with the -9999 error code.

Suggested by Ernie Petrides

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

index 7c10e90..8538bfe 100644 (file)
@@ -553,7 +553,7 @@ iret_label:
        /* force a signal here? this matches i386 behaviour */
        /* running with kernel gs */
 bad_iret:
-       movq $-9999,%rdi        /* better code? */
+       movq $11,%rdi   /* SIGSEGV */
        sti
        jmp do_exit                     
        .previous