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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2019 09:09:54 +0000 (10:09 +0100)
commit90964a3fb580be5926c8986d046bace2ad565ebe
tree5d2fad5cb136e5e72cec4669c9b709d4ce3c5b4f
parent987e90450a1cf7d79b70016cec36543cd05551b7
x86/cpu_entry_area: Add guard page for entry stack on 32bit

commit 880a98c339961eaa074393e3a2117cbe9125b8bb upstream.

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: c482feefe1ae ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/cpu_entry_area.h