diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2020-09-07 18:20:05 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2020-09-14 12:38:34 +0300 |
commit | da1694ad9e8d13484c8b4ecaabde0bd7b958442a (patch) | |
tree | bd504d95a0fa035b362274044c6a0f1441b593d0 /arch/s390/include/asm/set_memory.h | |
parent | 36c2733c439caa424fe2b7dded870913dcb868ac (diff) | |
download | linux-da1694ad9e8d13484c8b4ecaabde0bd7b958442a.tar.xz |
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>
Diffstat (limited to 'arch/s390/include/asm/set_memory.h')
-rw-r--r-- | arch/s390/include/asm/set_memory.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/include/asm/set_memory.h b/arch/s390/include/asm/set_memory.h index c59a83536c70..a22a5a81811c 100644 --- a/arch/s390/include/asm/set_memory.h +++ b/arch/s390/include/asm/set_memory.h @@ -2,6 +2,10 @@ #ifndef _ASMS390_SET_MEMORY_H #define _ASMS390_SET_MEMORY_H +#include <linux/mutex.h> + +extern struct mutex cpa_mutex; + #define SET_MEMORY_RO 1UL #define SET_MEMORY_RW 2UL #define SET_MEMORY_NX 4UL |