MIPS: traps: return correct si code for accessing nonmapped addresses
authorPetar Jovanovic <petar.jovanovic@rt-rk.com>
Wed, 13 Jul 2016 13:23:37 +0000 (15:23 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 21 Jul 2016 12:27:32 +0000 (14:27 +0200)
commitbcfc8f0d4a0a892b04c41c928cf077502b459fcc
treee7158787c2afbdf181c384446281e02654cb2602
parent008d0cf1ec69ec6d2c08f2d23aff2b67cbe5d2af
MIPS: traps: return correct si code for accessing nonmapped addresses

find_vma() returns the first VMA which satisfies fault_addr < vm_end, but
it does not guarantee fault_addr is actually within VMA. Therefore, kernel
has to check that before it chooses correct si code on return.

Signed-off-by: Petar Jovanovic <petar.jovanovic@rt-rk.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13808/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c