From: Satoshi Oshima Date: Sat, 20 May 2006 22:00:21 +0000 (-0700) Subject: [PATCH] kprobes: bad manipulation of 2 byte opcode on x86_64 X-Git-Tag: v2.6.17-rc5~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc49e3445aa703eb7fd33c7ddb7e4a7bbcf06d30;p=pandora-kernel.git [PATCH] kprobes: bad manipulation of 2 byte opcode on x86_64 Problem: If we put a probe onto a callq instruction and the probe is executed, kernel panic of Bad RIP value occurs. Root cause: If resume_execution() found 0xff at first byte of p->ainsn.insn, it must check the _second_ byte. But current resume_execution check _first_ byte again. I changed it checks second byte of p->ainsn.insn. Kprobes on i386 don't have this problem, because the implementation is a little bit different from x86_64. Cc: Andi Kleen Signed-off-by: Satoshi Oshima Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed