summaryrefslogtreecommitdiffstats
path: root/lib/interval_tree.c
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2015-03-09 14:54:50 +0000
committerRalf Baechle <ralf@linux-mips.org>2015-04-10 15:41:44 +0200
commiteeb538950367e3966cbf0237ab1a1dc30e059818 (patch)
treee5d34952dce301ed1095b54997958dede5cec80f /lib/interval_tree.c
parent60cd7e08e453bc6828ac4b539f949e4acd80f143 (diff)
downloadop-kernel-dev-eeb538950367e3966cbf0237ab1a1dc30e059818.zip
op-kernel-dev-eeb538950367e3966cbf0237ab1a1dc30e059818.tar.gz
MIPS: unaligned: Prevent EVA instructions on kernel unaligned accesses
Commit c1771216ab48 ("MIPS: kernel: unaligned: Handle unaligned accesses for EVA") allowed unaligned accesses to be emulated for EVA. However, when emulating regular load/store unaligned accesses, we need to use the appropriate "address space" instructions for that. Previously, an unaligned load/store instruction in kernel space would have used the corresponding EVA instructions to emulate it which led to segmentation faults because of the address translation that happens with EVA instructions. This is now fixed by using the EVA instruction only when emulating EVA unaligned accesses. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Fixes: c1771216ab48 ("MIPS: kernel: unaligned: Handle unaligned accesses for EVA") Cc: <stable@vger.kernel.org> # v3.15+ Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9501/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'lib/interval_tree.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud