]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 14 Mar 2023 15:47:08 +0000 (16:47 +0100)
commit705f2a64e23c0aebf8250667bf980f29e3a205be
tree81fe9fda938c4029115371e13f8578c463489031
parent5a7a1e2f22a20d246810b96fd9ad379b56694017
s390/mm,ptdump: avoid Kasan vs Memcpy Real markers swapping

BugLink: https://bugs.launchpad.net/bugs/2011425
[ 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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
arch/s390/mm/dump_pagetables.c