[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <46C370BC.40302@us.ibm.com>
Date: Wed, 15 Aug 2007 14:31:40 -0700
From: David Wilder <dwilder@...ibm.com>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
CC: martin.schwidefsky@...ibm.com
Subject: [patch] s390 kprobe fix instruction length calculation
Placing a kprobe on "bc" instruction (s390/s390x) can cause an oops.
The instruction length is encoded into the first two bits of the s390
instruction. Kprobe is incorrectly computing the instruction length.
The instruction length is used for determining what type of "fix-up" is
needed for conditional branch instruction. The problem can bee seen by
placing a kprobe on a "bc" instruction that will not branch. The
results is that Kprobe incorrectly computes the new instruction
pointer (psw.addr) after single stepping the instruction. The problem
is corrected with this patch.
View attachment "s390_kprobes_ilen.patch" of type "text/x-patch" (567 bytes)
Powered by blists - more mailing lists