diff options
author | Chang S. Bae <[email protected]> | 2019-06-16 15:44:11 +0000 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2019-06-22 11:38:50 +0200 |
commit | 48f5e52e916b55fb73754833efbacc7f8081a159 (patch) | |
tree | 89ca5b55d3fb55517789e8d8bdec80727ee0e9fa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b302e4b176d00e1cbc80148c5d0aee36751f7480 (diff) |
x86/ptrace: Prevent ptrace from clearing the FS/GS selector
When a ptracer writes a ptracee's FS/GSBASE with a different value, the
selector is also cleared. This behavior is not correct as the selector
should be preserved.
Update only the base value and leave the selector intact. To simplify the
code further remove the conditional checking for the same value as this
code is not performance critical.
The only recognizable downside of this change is when the selector is
already nonzero on write. The base will be reloaded according to the
selector. But the case is highly unexpected in real usages.
[ tglx: Massage changelog ]
Suggested-by: Andy Lutomirski <[email protected]>
Signed-off-by: Chang S. Bae <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: "H . Peter Anvin" <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions