]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] s390: ptrace peek and poke
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Sat, 4 Jun 2005 22:43:30 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 5 Jun 2005 00:13:00 +0000 (17:13 -0700)
commit44df3252d8a80e66249e90a97756a272a0c7d695
treea1e901eac1c3d567df29cd87e76ff804b4753d83
parenteeda1caa7649c0dc63ca411b5f796b3250abbc3f
[PATCH] s390: ptrace peek and poke

The special cases of peek and poke on acrs[15] and the fpc register are not
handled correctly.  A poke on acrs[15] will clobber the 4 bytes after the
access registers in the thread_info structure.  That happens to be the kernel
stack pointer.  A poke on the fpc with an invalid value is not caught by the
validity check.  On the next context switch the broken fpc value will cause a
program check in the kernel.  Improving the checks in peek and poke fixes
this.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/s390/kernel/ptrace.c