diff options
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | 2013-07-18 06:17:57 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-07-18 07:40:18 -0400 |
commit | 5a74953ff56aa870d6913ef4d81934f5c620c59d (patch) | |
tree | a2c44eb3048e1ac09159ad5477d5afc79d135d8a /fs | |
parent | c9a7afa380ecaeb0fbeec2e82f86ec5548ad2963 (diff) |
s390/kdump: Disable mmap for s390
The kdump mmap patch series (git commit 83086978c63afd7c73e1c) directly
map the PT_LOADs to memory. On s390 this does not work because the
copy_from_oldmem() function swaps [0,crashkernel size] with
[crashkernel base, crashkernel base+crashkernel size]. The swap
int copy_from_oldmem() was done in order correctly implement /dev/oldmem.
See: http://marc.info/?l=kexec&m=136940802511603&w=2
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/vmcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index 28503172f2e4..a1a16eb97c7b 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c | |||
@@ -223,7 +223,7 @@ static inline char *alloc_elfnotes_buf(size_t notes_sz) | |||
223 | * regions in the 1st kernel pointed to by PT_LOAD entries) into | 223 | * regions in the 1st kernel pointed to by PT_LOAD entries) into |
224 | * virtually contiguous user-space in ELF layout. | 224 | * virtually contiguous user-space in ELF layout. |
225 | */ | 225 | */ |
226 | #ifdef CONFIG_MMU | 226 | #if defined(CONFIG_MMU) && !defined(CONFIG_S390) |
227 | static int mmap_vmcore(struct file *file, struct vm_area_struct *vma) | 227 | static int mmap_vmcore(struct file *file, struct vm_area_struct *vma) |
228 | { | 228 | { |
229 | size_t size = vma->vm_end - vma->vm_start; | 229 | size_t size = vma->vm_end - vma->vm_start; |