Skip to content
Commit 4fd4b6e5 authored by Borislav Petkov's avatar Borislav Petkov
Browse files

x86/alternatives: Use optimized NOPs for padding



Alternatives allow now for an empty old instruction. In this case we go
and pad the space with NOPs at assembly time. However, there are the
optimal, longer NOPs which should be used. Do that at patching time by
adding alt_instr.padlen-sized NOPs at the old instruction address.

Cc: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
parent 48c7a250
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment