From: Wang Nan Date: Tue, 10 Feb 2015 01:34:05 +0000 (+0800) Subject: kprobes/x86: Mark 2 bytes NOP as boostable X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~27^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7e37567d080301d38a302bb93ba79d1ca446dca;p=pandora-kernel.git kprobes/x86: Mark 2 bytes NOP as boostable Currently, x86 kprobes is unable to boost 2 bytes nop like: nopl 0x0(%rax,%rax,1) which is 0x0f 0x1f 0x44 0x00 0x00. Such nops have exactly 5 bytes to hold a relative jmp instruction. Boosting them should be obviously safe. This patch enable boosting such nops by simply updating twobyte_is_boostable[] array. Signed-off-by: Wang Nan Acked-by: Masami Hiramatsu Cc: Link: http://lkml.kernel.org/r/1423532045-41049-1-git-send-email-wangnan0@huawei.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed