selftests/x86/fsgsbase: Test ptracer-induced GSBASE write
authorChang S. Bae <chang.seok.bae@intel.com>
Wed, 8 May 2019 10:02:17 +0000 (03:02 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 22 Jun 2019 09:38:51 +0000 (11:38 +0200)
commit1b6858d5a2eb2485761f06bd48055ed5bed08464
treeff8511ef6320f88be6a8cfc05e0db4ec096c93a6
parent48f5e52e916b55fb73754833efbacc7f8081a159
selftests/x86/fsgsbase: Test ptracer-induced GSBASE write

The test validates that the selector is not changed when a ptracer writes
the ptracee's GSBASE.

Suggested-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>
Cc: "H . Peter Anvin" <hpa@zytor.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ravi Shankar <ravi.v.shankar@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Link: https://lkml.kernel.org/r/1557309753-24073-3-git-send-email-chang.seok.bae@intel.com
tools/testing/selftests/x86/fsgsbase.c