Skip to content

Commit

Permalink
[PATCH] x86_64: Report SIGSEGV for IRET faults
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Mar 25, 2006
1 parent ad90573 commit 3076a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3076a49

Please sign in to comment.