s390/mm,ptdump: hold memory hotplug lock while walking for kernel page table dump
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 7 Sep 2020 15:11:36 +0000 (17:11 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 14 Sep 2020 09:38:34 +0000 (11:38 +0200)
commit36c2733c439caa424fe2b7dded870913dcb868ac
tree8846d2fa2c940d00b92e1bbc08681951c57317d1
parent9d719d39aab41d3b8b6f259574dc29a27f60e66c
s390/mm,ptdump: hold memory hotplug lock while walking for kernel page table dump

This is the s390 variant of commit bf2b59f60ee1 ("arm64/mm: Hold
memory hotplug lock while walking for kernel page table dump").

Right now this doesn't fix any real bug, however as soon as kvm
patches get merged which make use of memory remove we might end up
dereferencing/accessing freed page tables.

Therefore fix this potential bug already now.

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/mm/dump_pagetables.c