https://github.com/torvalds/linux
Revision dc49e3445aa703eb7fd33c7ddb7e4a7bbcf06d30 authored by Satoshi Oshima on 20 May 2006, 22:00:21 UTC, committed by Linus Torvalds on 21 May 2006, 19:59:21 UTC
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 <ak@muc.de>
Signed-off-by: Satoshi Oshima <soshima@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent be0d03f
History
Tip revision: dc49e3445aa703eb7fd33c7ddb7e4a7bbcf06d30 authored by Satoshi Oshima on 20 May 2006, 22:00:21 UTC
[PATCH] kprobes: bad manipulation of 2 byte opcode on x86_64
Tip revision: dc49e34
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 462 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.4 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 68.5 KB
Makefile -rw-r--r-- 43.7 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top