]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Fix ppc32 single-stepping out of syscalls
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 24 May 2007 05:41:04 +0000 (15:41 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 2 Jun 2007 11:01:55 +0000 (21:01 +1000)
commit0a6e02ca722147a122aee1c7171fb03a95b0e77b
tree86e61fb96320bc039c301c9bd690d7f8ea9320f7
parent9f426fc59886bd42405fe1f80d29981c293c4991
[POWERPC] Fix ppc32 single-stepping out of syscalls

The ppc32 kernel didn't properly set/clear the TIF_SINGLESTEP
flag, causing return from syscalls to not SIGTRAP, thus executing
one more instruction before stopping again.

This fixes it.  The ptrace code is a bit of a mess, and is overdue
for at least a -proper- 32/64 bits split and possibly more cleanups
but this minimum fix should be ok for 2.6.22

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/ptrace.c