x86/cpu: Add 'unsafe_fsgsbase' to enable CR4.FSGSBASE
authorAndy Lutomirski <luto@kernel.org>
Wed, 8 May 2019 10:02:18 +0000 (03:02 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 22 Jun 2019 09:38:51 +0000 (11:38 +0200)
commitb64ed19b93c368be0fb6acf05377e8e3a694c92b
tree60dc3d25693703da8c47b46e3bac7ca38dd292a4
parent1b6858d5a2eb2485761f06bd48055ed5bed08464
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>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Cc: Ravi Shankar <ravi.v.shankar@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Link: https://lkml.kernel.org/r/1557309753-24073-4-git-send-email-chang.seok.bae@intel.com
Documentation/admin-guide/kernel-parameters.txt
arch/x86/kernel/cpu/common.c