diff options
author | Chang S. Bae <chang.seok.bae@intel.com> | 2020-05-28 23:13:53 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-06-18 16:47:02 +0300 |
commit | 005f141e5d5e05d3986539567d0bc5aa2f4dc640 (patch) | |
tree | 8483e6be0a7c3040c858b1dd5026c176b4f1e551 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 673903495c85137791d5820d690229efe09c8f7b (diff) | |
download | linux-005f141e5d5e05d3986539567d0bc5aa2f4dc640.tar.xz |
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/1557309753-24073-9-git-send-email-chang.seok.bae@intel.com
Link: https://lkml.kernel.org/r/20200528201402.1708239-8-sashal@kernel.org
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions