]> git.baikalelectronics.ru Git - kernel.git/commit
x86/cpu_entry_area: Add guard page for entry stack on 32bit
authorThomas Gleixner <tglx@linutronix.de>
Wed, 20 Nov 2019 23:40:24 +0000 (00:40 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 21 Nov 2019 18:37:43 +0000 (19:37 +0100)
commitb5016cdcf21ab4d898769ee63d4e738e54503033
treee7730f252db8af6007070060c9b2c8a3394b9110
parentbdbd08df5bc0a529c43ac68a02b5ea2dba086e89
x86/cpu_entry_area: Add guard page for entry stack on 32bit

The entry stack in the cpu entry area is protected against overflow by the
readonly GDT on 64-bit, but on 32-bit the GDT needs to be writeable and
therefore does not trigger a fault on stack overflow.

Add a guard page.

Fixes: b206a138a74b ("x86/entry/64: Make cpu_entry_area.tss read-only")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@kernel.org
arch/x86/include/asm/cpu_entry_area.h