s390/mm,ptdump: sort markers
authorVasily Gorbik <gor@linux.ibm.com>
Thu, 10 Sep 2020 20:51:17 +0000 (22:51 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 16 Sep 2020 12:08:47 +0000 (14:08 +0200)
commitee4b2ce6d1e3baa412148a7b0889f6643749c665
tree9ae39b3e6189204b8cac57bb49754750c29fbd53
parent4904e1941ee334bf1f90e4017a37f7c8a52b685c
s390/mm,ptdump: sort markers

Kasan configuration options and size of physical memory present could
affect kernel memory layout. In particular vmemmap, vmalloc and modules
might come before kasan shadow or after it. To make ptdump correctly
output markers in the right order markers have to be sorted.

To preserve the original order of markers with the same start address
avoid using sort() from lib/sort.c (which is not stable sorting algorithm)
and sort markers in place.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/mm/dump_pagetables.c