OpenCloudOS-Kernel/arch/x86/entry
Andy Lutomirski 2deb4be280 x86/dumpstack: When OOPSing, rewind the stack before do_exit()
If we call do_exit() with a clean stack, we greatly reduce the risk of
recursive oopses due to stack overflow in do_exit, and we allow
do_exit to work even if we OOPS from an IST stack.  The latter gives
us a much better chance of surviving long enough after we detect a
stack overflow to write out our logs.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/32f73ceb372ec61889598da5e5b145889b9f2e19.1468527351.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2016-07-15 10:26:28 +02:00
..
syscalls x86: Use compat version for preadv2 and pwritev2 2016-05-12 14:27:13 +02:00
vdso Merge branch 'x86/asm' into x86/mm, to resolve conflicts 2016-07-15 10:26:04 +02:00
vsyscall x86/vdso: Disallow vvar access to vclock IO for never-used vclocks 2016-01-12 11:59:35 +01:00
Makefile objtool: Mark non-standard object files and directories 2016-02-29 08:35:02 +01:00
calling.h x86/asm/entry: Remove unused SAVE_ALL/RESTORE_ALL macros for !CONFIG_x86_64 2016-01-19 08:24:03 +01:00
common.c x86/entry: Inline enter_from_user_mode() 2016-07-10 13:33:02 +02:00
entry_32.S x86/dumpstack: When OOPSing, rewind the stack before do_exit() 2016-07-15 10:26:28 +02:00
entry_64.S x86/dumpstack: When OOPSing, rewind the stack before do_exit() 2016-07-15 10:26:28 +02:00
entry_64_compat.S x86/asm/entry/32: Simplify pushes of zeroed pt_regs->REGs 2016-05-03 08:19:40 +02:00
syscall_32.c x86/syscalls: Add syscall entry qualifiers 2016-01-29 09:46:38 +01:00
syscall_64.c x86/entry/64: Always run ptregs-using syscalls on the slow path 2016-01-29 09:46:38 +01:00
thunk_32.S Merge branch 'x86-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2015-06-22 17:59:09 -07:00
thunk_64.S x86/asm/entry: Make thunk's restore a local label 2016-07-08 16:47:01 +02:00