]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - arch/x86/kernel/cpu/common.c
x86/cpu: Add 'unsafe_fsgsbase' to enable CR4.FSGSBASE
authorAndy Lutomirski <luto@kernel.org>
Thu, 28 May 2020 20:13:48 +0000 (16:13 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 18 Jun 2020 13:46:59 +0000 (15:46 +0200)
commitdd649bd0b3aa012740059b1ba31ecad28a408f7f
treebddc137e3a777e774c64cedbd10ef85e2f8c1504
parentfddf8ba1e48860211c9639d00883833b42fcc1e0
x86/cpu: Add 'unsafe_fsgsbase' to enable CR4.FSGSBASE

This is temporary.  It will allow the next few patches to be tested
incrementally.

Setting unsafe_fsgsbase is a root hole.  Don't do it.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/1557309753-24073-4-git-send-email-chang.seok.bae@intel.com
Link: https://lkml.kernel.org/r/20200528201402.1708239-3-sashal@kernel.org
Documentation/admin-guide/kernel-parameters.txt
arch/x86/kernel/cpu/common.c