s390/mm,ptdump: avoid Kasan vs Memcpy Real markers swapping
authorVasily Gorbik <gor@linux.ibm.com>
Tue, 24 Jan 2023 17:08:38 +0000 (18:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:51 +0000 (09:33 +0100)
commit531570a18761bbe741d226192e54dd779aa0377b
tree4a5c28881393486fa5743e330aa8c2032ccceae6
parentab5fd43a8abc8962709ea8da0aa2205513932e0e
s390/mm,ptdump: avoid Kasan vs Memcpy Real markers swapping

[ Upstream commit 05178996e1a77e2a4664536e6d101a086a905034 ]

---[ Real Memory Copy Area Start ]---
0x001bfffffffff000-0x001c000000000000         4K PTE I
---[ Kasan Shadow Start ]---
---[ Real Memory Copy Area End ]---
0x001c000000000000-0x001c000200000000         8G PMD RW NX
...
---[ Kasan Shadow End ]---

ptdump does a stable sort of markers. Move kasan markers after
memcpy real to avoid swapping.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/mm/dump_pagetables.c