]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kprobe: Don't emulate store when kprobe stwu r1
authorTiejun Chen <tiejun.chen@windriver.com>
Sun, 16 Sep 2012 23:54:31 +0000 (23:54 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 18 Sep 2012 05:32:45 +0000 (15:32 +1000)
commitf60978aeba9389a453571dcf13c746392c6cd4ac
tree8785a164fdaa422a146fdda4b21100189858f90d
parent319b7d33280a31e6fc35aa32d2454238a57faa11
powerpc/kprobe: Don't emulate store when kprobe stwu r1

We don't do the real store operation for kprobing 'stwu Rx,(y)R1'
since this may corrupt the exception frame, now we will do this
operation safely in exception return code after migrate current
exception frame below the kprobed function stack.

So we only update gpr[1] here and trigger a thread flag to mask
this.

Note we should make sure if we trigger kernel stack over flow.

Signed-off-by: Tiejun Chen <tiejun.chen@windriver.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/lib/sstep.c