android_kernel_oneplus_msm8998/arch/parisc/mm
Helge Deller e18ca17b90 parisc: Report SIGSEGV instead of SIGBUS when running out of stack
commit 247462316f85a9e0479445c1a4223950b68ffac1 upstream.

When a process runs out of stack the parisc kernel wrongly faults with SIGBUS
instead of the expected SIGSEGV signal.

This example shows how the kernel faults:
do_page_fault() command='a.out' type=15 address=0xfaac2000 in libc-2.24.so[f8308000+16c000]
trap #15: Data TLB miss fault, vm_start = 0xfa2c2000, vm_end = 0xfaac2000

The vma->vm_end value is the first address which does not belong to the vma, so
adjust the check to include vma->vm_end to the range for which to send the
SIGSEGV signal.

This patch unbreaks building the debian libsigsegv package.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-21 07:44:56 +02:00
..
fault.c parisc: Report SIGSEGV instead of SIGBUS when running out of stack 2017-07-21 07:44:56 +02:00
hugetlbpage.c parisc: Protect huge page pte changes with spinlocks 2016-02-17 12:30:57 -08:00
init.c Merge branch 'parisc-4.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux 2015-11-22 12:50:58 -08:00
ioremap.c parisc: fix wrong page aligned size calculation in ioremapping code 2010-08-12 08:43:29 -07:00
Makefile parisc: Add Huge Page and HUGETLBFS support 2015-11-22 12:23:10 +01:00