Vasily Gorbik 420f48f636 s390/setup: avoid reserving memory above identity mapping
Such reserved memory region, if not cleaned up later causes problems when
memblock_free_all() is called to release free pages to the buddy allocator
and those reserved regions are carried over to reserve_bootmem_region()
which marks the pages as PageReserved.

Instead use memblock_set_current_limit() to make sure memblock allocations
do not go over identity mapping (which could happen when "mem=" option
is used or during kdump).

Cc: stable@vger.kernel.org
Fixes: 73045a08cf55 ("s390: unify identity mapping limits handling")
Reported-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2021-11-16 12:29:18 +01:00
..
2021-08-30 13:07:15 -07:00
2021-08-30 13:07:15 -07:00
2021-10-11 20:55:58 +02:00
2021-08-05 14:10:53 +02:00
2021-07-27 09:39:19 +02:00
2021-01-19 12:29:26 +01:00
2021-08-03 14:31:40 +02:00
2020-06-29 16:31:46 +02:00
2021-08-05 14:10:53 +02:00
2021-08-03 14:31:40 +02:00
2021-11-06 14:08:17 -07:00
2021-07-08 15:37:28 +02:00