Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'powerpc-4.15-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux

Pull powerpc fix from Michael Ellerman:
"Just one fix to correctly return SEGV_ACCERR when we take a SEGV on a
mapped region. The bug was introduced in the refactoring of the page
fault handler we did in the previous release.

Thanks to John Sperbeck"

* tag 'powerpc-4.15-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
powerpc/mm: Fix SEGV on mapped region to return SEGV_ACCERR

+6 -1
+6 -1
arch/powerpc/mm/fault.c
··· 145 145 return __bad_area(regs, address, SEGV_MAPERR); 146 146 } 147 147 148 + static noinline int bad_access(struct pt_regs *regs, unsigned long address) 149 + { 150 + return __bad_area(regs, address, SEGV_ACCERR); 151 + } 152 + 148 153 static int do_sigbus(struct pt_regs *regs, unsigned long address, 149 154 unsigned int fault) 150 155 { ··· 495 490 496 491 good_area: 497 492 if (unlikely(access_error(is_write, is_exec, vma))) 498 - return bad_area(regs, address); 493 + return bad_access(regs, address); 499 494 500 495 /* 501 496 * If for any reason at all we couldn't handle the fault,