Commit 7e2c8bc
committed
x86/bugs: Reverse instruction order of CLEAR_CPU_BUFFERS
JIRA: https://issues.redhat.com/browse/RHEL-31226
Upstream Status: RHEL only
In the CLEAR_CPU_BUFFERS macro, the use of a VERW instruction with %rip
relative addressing in the newinstr portion of ALTERNATIVE depends on the
presence of commit 270a69c ("x86/alternative: Support relocations
in alternatives") and related ones. Break that dependency by reversing
the ordering of the two instructions and use ALT_NOT() for the feature
flag so that the correct %rip offset will be present without any special
handling.
This will also allow the RDFS fix to be backported to older RHEL releases
without requiring an additional set of x86/alternative commits.
Signed-off-by: Waiman Long <longman@redhat.com>1 parent b25878a commit 7e2c8bc
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| |||
0 commit comments