linux-stable/arch/x86/realmode
Joerg Roedel ff867910e8 x86/mm: Flush global TLB when switching to trampoline page-table
[ Upstream commit 71d5049b05 ]

Move the switching code into a function so that it can be re-used and
add a global TLB flush. This makes sure that usage of memory which is
not mapped in the trampoline page-table is reliably caught.

Also move the clearing of CR4.PCIDE before the CR3 switch because the
cr4_clear_bits() function will access data not mapped into the
trampoline page-table.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20211202153226.22946-4-joro@8bytes.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 09:19:42 +01:00
..
rm x86/asm/32: Add ENDs to some functions and relabel with SYM_CODE_* 2021-01-17 14:05:30 +01:00
Makefile objtool: Mark non-standard object files and directories 2016-02-29 08:35:02 +01:00
init.c x86/mm: Flush global TLB when switching to trampoline page-table 2022-01-27 09:19:42 +01:00
rmpiggy.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00