diff options
author | Benjamin Gray <bgray@linux.ibm.com> | 2023-06-19 17:36:26 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-06-19 17:36:26 +1000 |
commit | be98fcf7c10dea74e9c3e2cd0018e47bdee67442 (patch) | |
tree | 2536fca1dfd218dd60b68e8eb7b222e82e849f79 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5bcba4e6c13f0c889da1f9e67ee10accd9ca4c19 (diff) |
powerpc/dexcr: Support userspace ROP protection
The ISA 3.1B hashst and hashchk instructions use a per-cpu SPR HASHKEYR
to hold a key used in the hash calculation. This key should be different
for each process to make it harder for a malicious process to recreate
valid hash values for a victim process.
Add support for storing a per-thread hash key, and setting/clearing
HASHKEYR appropriately.
Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Reviewed-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230616034846.311705-6-bgray@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions