]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix string instr. emulation for 32-bit processes on ppc64
authorJames Yang <James.Yang@freescale.com>
Tue, 25 Jun 2013 16:41:05 +0000 (11:41 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 30 Jun 2013 05:49:40 +0000 (15:49 +1000)
commit22beee45edadf3ca4a6d2f7c6e3fffc4707988d5
tree6b110dea572ce2a63e4cd47bf95ede1e9a8b2ee4
parente24f1e796ebece3dd83e28fbcfc0c4892939a652
powerpc: Fix string instr. emulation for 32-bit processes on ppc64

String instruction emulation would erroneously result in a segfault if
the upper bits of the EA are set and is so high that it fails access
check.  Truncate the EA to 32 bits if the process is 32-bit.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/traps.c