diff options
author | Pawan Gupta <[email protected]> | 2024-02-26 15:52:33 -0800 |
---|---|---|
committer | Dave Hansen <[email protected]> | 2024-02-26 17:06:17 -0800 |
commit | 8009479ee919b9a91674f48050ccbff64eafedaa (patch) | |
tree | d35a8f38ef9b110fe1bee90fc300f20c8799997d /tools/perf/scripts/python | |
parent | 6890cb1ace350b4386c8aee1343dc3b3ddd214da (diff) |
x86/bugs: Use fixed addressing for VERW operand
The macro used for MDS mitigation executes VERW with relative
addressing for the operand. This was necessary in earlier versions of
the series. Now it is unnecessary and creates a problem for backports
on older kernels that don't support relocations in alternatives.
Relocation support was added by commit 270a69c4485d ("x86/alternative:
Support relocations in alternatives"). Also asm for fixed addressing
is much cleaner than relative RIP addressing.
Simplify the asm by using fixed addressing for VERW operand.
[ dhansen: tweak changelog ]
Closes: https://lore.kernel.org/lkml/[email protected]/
Fixes: baf8361e5455 ("x86/bugs: Add asm helpers for executing VERW")
Reported-by: Nikolay Borisov <[email protected]>
Signed-off-by: Pawan Gupta <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Link: https://lore.kernel.org/all/20240226-verw-arg-fix-v1-1-7b37ee6fd57d%40linux.intel.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions