]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86_64, traps: Fix the espfix64 #DF fixup and rewrite it in C
authorAndy Lutomirski <luto@amacapital.net>
Sun, 23 Nov 2014 02:00:31 +0000 (18:00 -0800)
committerJiri Slaby <jslaby@suse.cz>
Sat, 6 Dec 2014 14:14:49 +0000 (15:14 +0100)
commit8f9d4f83ed394c6add6be0f27ca466304f1fc42a
tree4e4a1346694a82fa8f45aad663158a1941967487
parent1518cde157af1021c44565d6260a152e65df214f
x86_64, traps: Fix the espfix64 #DF fixup and rewrite it in C

commit af726f21ed8af2cdaa4e93098dc211521218ae65 upstream.

There's nothing special enough about the espfix64 double fault fixup to
justify writing it in assembly.  Move it to C.

This also fixes a bug: if the double fault came from an IST stack, the
old asm code would return to a partially uninitialized stack frame.

Fixes: 3891a04aafd668686239349ea58f3314ea2af86b
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/x86/kernel/entry_64.S
arch/x86/kernel/traps.c