s390/mm,ptdump: hold cpa mutex while walking for kernel page table dump
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 7 Sep 2020 15:20:05 +0000 (17:20 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 14 Sep 2020 09:38:34 +0000 (11:38 +0200)
commitda1694ad9e8d13484c8b4ecaabde0bd7b958442a
treebd504d95a0fa035b362274044c6a0f1441b593d0
parent36c2733c439caa424fe2b7dded870913dcb868ac
s390/mm,ptdump: hold cpa mutex while walking for kernel page table dump

This is currently only preventing that outdated information is
provided to user space. A concurrent split of huge/large pages does
modify the kernel page tables, however either the huge/large mapping
is reported or the split area is being walked.

This "fixes" also only a potential future bug, since split pages could
also be merged again if page permissions are the same for larger
memory areas.

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