1 Subject: Don't emulate mr. instructions
2 From: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
3 References: 459387 - LTC49903
5 Currently emulate_step() emulates mr. instructions without updating cr0
6 and this can be disastrous. Don't emulate mr.
8 Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
9 Signed-off-by: Olaf Hering <olh@suse.de>
12 arch/powerpc/lib/sstep.c | 2 ++
13 1 file changed, 2 insertions(+)
15 --- a/arch/powerpc/lib/sstep.c
16 +++ b/arch/powerpc/lib/sstep.c
17 @@ -172,6 +172,8 @@ int __kprobes emulate_step(struct pt_reg
23 rs = (instr >> 21) & 0x1f;
24 rb = (instr >> 11) & 0x1f;
25 if (rs == rb) { /* mr */