]> Git Repo - linux.git/commit
x86/asm/entry/64: Disentangle error_entry/exit gsbase/ebx/usermode code
authorAndy Lutomirski <[email protected]>
Tue, 9 Jun 2015 19:36:01 +0000 (12:36 -0700)
committerIngo Molnar <[email protected]>
Wed, 10 Jun 2015 06:47:57 +0000 (08:47 +0200)
commit539f5113650068ba221197f190267ab727296ef5
treeeafc4ade012f4ced276f92e891c9196af70f3f67
parenta92fde25231a89d7d10895482556260c1b63767d
x86/asm/entry/64: Disentangle error_entry/exit gsbase/ebx/usermode code

The error_entry/error_exit code to handle gsbase and whether we
return to user mdoe was a mess:

 - error_sti was misnamed.  In particular, it did not enable interrupts.

 - Error handling for gs_change was hopelessly tangled the normal
   usermode path.  Separate it out.  This saves a branch in normal
   entries from kernel mode.

 - The comments were bad.

Fix it up.  As a nice side effect, there's now a code path that
happens on error entries from user mode.  We'll use it soon.

Signed-off-by: Andy Lutomirski <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/f1be898ab93360169fb845ab85185948832209ee.1433878454.git.luto@kernel.org
[ Prettified it, clarified comments some more. ]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/entry/entry_64.S
This page took 0.056451 seconds and 4 git commands to generate.