linux/arch/x86/include
Andy Lutomirski 6dbba2133e x86/asm/entry: Create and use a 'TOP_OF_KERNEL_STACK_PADDING' macro
[ Upstream commit 3ee4298f44 ]

x86_32, unlike x86_64, pads the top of the kernel stack, because the
hardware stack frame formats are variable in size.

Document this padding and give it a name.

This should make no change whatsoever to the compiled kernel
image. It also doesn't fix any of the current bugs in this area.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Acked-by: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/02bf2f54b8dcb76a62a142b6dfe07d4ef7fc582e.1426009661.git.luto@amacapital.net
[ Fixed small details, such as a missed magic constant in entry_32.S pointed out by Denys Vlasenko. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2015-10-27 22:13:11 -04:00
..
asm x86/asm/entry: Create and use a 'TOP_OF_KERNEL_STACK_PADDING' macro 2015-10-27 22:13:11 -04:00
uapi/asm x86/tls: Don't validate lm in set_thread_area() after all 2015-01-08 10:30:21 -08:00