From 2bf370c889e55dca0f673dd1ee688b242f2eb881 Mon Sep 17 00:00:00 2001 From: Borislav Petkov Date: Sat, 10 Jan 2015 20:34:07 +0100 Subject: [PATCH] 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-format-patch failed