forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork1
Commit612e8e9
x86/alternatives: Fix optimize_nops() checking
The alternatives code checks only the first byte whether it is a NOP, butwith NOPs in front of the payload and having actual instructions after itbreaks the "optimized' test.Make sure to scan all bytes before deciding to optimize the NOPs in there.Reported-by: David Woodhouse <dwmw2@infradead.org>Signed-off-by: Borislav Petkov <bp@suse.de>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Cc: Tom Lendacky <thomas.lendacky@amd.com>Cc: Andi Kleen <ak@linux.intel.com>Cc: Tim Chen <tim.c.chen@linux.intel.com>Cc: Peter Zijlstra <peterz@infradead.org>Cc: Jiri Kosina <jikos@kernel.org>Cc: Dave Hansen <dave.hansen@intel.com>Cc: Andi Kleen <andi@firstfloor.org>Cc: Andrew Lutomirski <luto@kernel.org>Cc: Linus Torvalds <torvalds@linux-foundation.org>Cc: Greg Kroah-Hartman <gregkh@linux-foundation.org>Cc: Paul Turner <pjt@google.com>Link:https://lkml.kernel.org/r/20180110112815.mgciyf5acwacphkq@pd.tnic1 parent9ecccfa commit612e8e9
1 file changed
+5
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
344 | 344 |
| |
345 | 345 |
| |
346 | 346 |
| |
| 347 | + | |
347 | 348 |
| |
348 |
| - | |
349 |
| - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
350 | 353 |
| |
351 | 354 |
| |
352 | 355 |
| |
|
0 commit comments
Comments
(0)