linux-stable/arch/s390/mm
Martin Schwidefsky 8ab867cb08 s390/mm: fix BUG_ON in crst_table_upgrade
A 31-bit compat process can force a BUG_ON in crst_table_upgrade
with specific, invalid mmap calls, e.g.

   mmap((void*) 0x7fff8000, 0x10000, 3, 32, -1, 0)

The arch_get_unmapped_area[_topdown] functions miss an if condition
in the decision to do a page table upgrade.

Fixes: 9b11c7912d ("s390/mm: simplify arch_get_unmapped_area[_topdown]")
Cc: <stable@vger.kernel.org>  # v4.12+
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2017-08-31 14:03:21 +02:00
..
cmm.c s390: mm: Audit and remove any unnecessary uses of module.h 2017-02-17 07:40:35 +01:00
dump_pagetables.c s390/mm: implement 5 level pages tables 2017-06-12 16:25:54 +02:00
extmem.c s390: mm: Audit and remove any unnecessary uses of module.h 2017-02-17 07:40:35 +01:00
fault.c s390/fault: use _ASCE_ORIGIN instead of PAGE_MASK 2017-06-12 16:25:59 +02:00
gmap.c s390/mm: add __rcu annotations 2017-06-12 16:25:55 +02:00
gup.c s390/mm: implement 5 level pages tables 2017-06-12 16:25:54 +02:00
hugetlbpage.c mm/hugetlb: add size parameter to huge_pte_offset() 2017-07-06 16:24:34 -07:00
init.c mm, memory_hotplug: replace for_device by want_memblock in arch_add_memory 2017-07-06 16:24:32 -07:00
maccess.c s390/maccess: reduce stnsm instructions 2016-02-17 09:05:04 +01:00
Makefile s390/extable: use generic search and sort routines 2016-03-22 15:36:02 -07:00
mem_detect.c s390: mm: Audit and remove any unnecessary uses of module.h 2017-02-17 07:40:35 +01:00
mmap.c s390/mm: fix BUG_ON in crst_table_upgrade 2017-08-31 14:03:21 +02:00
page-states.c s390/kvm: Add PGSTE manipulation functions 2017-04-20 13:33:08 +02:00
pageattr.c s390/mm: implement 5 level pages tables 2017-06-12 16:25:54 +02:00
pgalloc.c s390/mm: implement 5 level pages tables 2017-06-12 16:25:54 +02:00
pgtable.c s390/mm: set change and reference bit on lazy key enablement 2017-07-13 11:28:29 +02:00
vmem.c s390/mm: implement 5 level pages tables 2017-06-12 16:25:54 +02:00