commit | bcfc8f0d4a0a892b04c41c928cf077502b459fcc | [log] [tgz] |
---|---|---|
author | Petar Jovanovic <petar.jovanovic@rt-rk.com> | Wed Jul 13 15:23:37 2016 +0200 |
committer | Ralf Baechle <ralf@linux-mips.org> | Thu Jul 21 14:27:32 2016 +0200 |
tree | e7158787c2afbdf181c384446281e02654cb2602 | |
parent | 008d0cf1ec69ec6d2c08f2d23aff2b67cbe5d2af [diff] |
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>