Re: [PATCH v2 2/2] kprobes/x86: Use 16 bytes for each instruction slot again

2015-06-04 Thread Jeff Epler
On Wed, Jun 03, 2015 at 10:54:11AM +0300, Eugene Shatokhin wrote: > --- a/kernel/kprobes.c > +++ b/kernel/kprobes.c > @@ -57,7 +57,6 @@ > #define KPROBE_HASH_BITS 6 > #define KPROBE_TABLE_SIZE (1 << KPROBE_HASH_BITS) > > - > /* > * Some oddball architectures like 64bit powerpc have function

[PATCH v2 2/2] kprobes/x86: Use 16 bytes for each instruction slot again

2015-06-03 Thread Eugene Shatokhin
Commit 91e5ed49fca0 ("x86/asm/decoder: Fix and enforce max instruction size in the insn decoder") has changed MAX_INSN_SIZE from 16 to 15 bytes on x86. As a side effect, the slots Kprobes use to store the instructions became 1 byte shorter. This is unfortunate because, for example, the Kprobes' "b