diff options
author | Chang S. Bae <chang.seok.bae@intel.com> | 2019-05-08 12:02:23 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-06-22 11:38:53 +0200 |
commit | f60a83df4593c5e03e746ded66d8b436c4ad6e41 (patch) | |
tree | e55d1c124a87c27558089966dce2a9f6276d6b68 /arch/x86/entry/entry_64.S | |
parent | x86/process/64: Use FSBSBASE in switch_to() if available (diff) | |
download | linux-f60a83df4593c5e03e746ded66d8b436c4ad6e41.tar.xz linux-f60a83df4593c5e03e746ded66d8b436c4ad6e41.zip |
x86/process/64: Use FSGSBASE instructions on thread copy and ptrace
When FSGSBASE is enabled, copying threads and reading fsbase and gsbase
using ptrace must read the actual values.
When copying a thread, use save_fsgs() and copy the saved values. For
ptrace, the bases must be read from memory regardless of the selector if
FSGSBASE is enabled.
[ tglx: Invoke __rdgsbase_inactive() with interrupts disabled ]
[ luto: Massage changelog ]
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-9-git-send-email-chang.seok.bae@intel.com
Diffstat (limited to 'arch/x86/entry/entry_64.S')
0 files changed, 0 insertions, 0 deletions