s390 updates for 6.0-rc4

- Update defconfigs.

- Fix linker script to align nospec tables correctly to avoid potentially
  unbootable kernel with some config options.

- Fix alignment check in prepare_hugepage_range() for 2GB hugepages to avoid
  BUG in __unmap_hugepage_range() for unaligned mappings later.

- Remove useless hugepage address alignment in hugetlb faults handling.
s390/hugetlb: fix prepare_hugepage_range() check for 2 GB hugepages

The alignment check in prepare_hugepage_range() is wrong for 2 GB
hugepages, it only checks for 1 MB hugepage alignment.

This can result in kernel crash in __unmap_hugepage_range() at the
BUG_ON(start & ~huge_page_mask(h)) alignment check, for mappings
created with MAP_FIXED at unaligned address.

Fix this by correctly handling multiple hugepage sizes, similar to the
generic version of prepare_hugepage_range().

Fixes: d08de8e2d867 ("s390/mm: add support for 2GB hugepages")
Cc: <stable@vger.kernel.org> # 4.8+
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
1 file changed