OSDN Git Service

x86/mm/64: Flush global TLB on boot and AP bringup
authorJoerg Roedel <jroedel@suse.de>
Thu, 2 Dec 2021 15:32:24 +0000 (16:32 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 6 Dec 2021 08:38:48 +0000 (09:38 +0100)
commitf154f290855b070cc94dd44ad253c0ef8a9337bb
tree804830bc075803ec0553bb866cf2612f1f504447
parent9de4999050b5f2e847c84372c6a1aa1fe32bb269
x86/mm/64: Flush global TLB on boot and AP bringup

The AP bringup code uses the trampoline_pgd page-table which
establishes global mappings in the user range of the address space.
Flush the global TLB entries after the indentity mappings are removed so
no stale entries remain in the TLB.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20211202153226.22946-3-joro@8bytes.org
arch/x86/include/asm/tlbflush.h
arch/x86/kernel/head64.c
arch/x86/kernel/head_64.S
arch/x86/mm/tlb.c