From: Borislav Petkov Date: Sat, 10 Jan 2015 19:34:07 +0000 (+0100) Subject: x86/alternatives: Use optimized NOPs for padding X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bf370c889e55dca0f673dd1ee688b242f2eb881;p=pandora-kernel.git x86/alternatives: Use optimized NOPs for padding commit 4fd4b6e5537cec5b56db0b22546dd439ebb26830 upstream. 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 Signed-off-by: Borislav Petkov Signed-off-by: Hugh Dickins Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed