Преглед изворни кода

[PATCH] x86_64: Remove unprotected iret

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>
Jan Beulich пре 19 година
родитељ
комит
505cc4e1d6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      arch/x86_64/kernel/entry.S

+ 1 - 1
arch/x86_64/kernel/entry.S

@@ -754,7 +754,7 @@ error_exit:
 	jnz  retint_careful
 	swapgs 
 	RESTORE_ARGS 0,8,0						
-	iretq
+	jmp iret_label
 	CFI_ENDPROC
 
 error_kernelspace: