Skip to content

Commit 5a74953

Browse files
Michael HolzheuMartin Schwidefsky
authored andcommitted
s390/kdump: Disable mmap for s390
The kdump mmap patch series (git commit 8308697) 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 <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
1 parent c9a7afa commit 5a74953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/proc/vmcore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ static inline char *alloc_elfnotes_buf(size_t notes_sz)
223223
* regions in the 1st kernel pointed to by PT_LOAD entries) into
224224
* virtually contiguous user-space in ELF layout.
225225
*/
226-
#ifdef CONFIG_MMU
226+
#if defined(CONFIG_MMU) && !defined(CONFIG_S390)
227227
static int mmap_vmcore(struct file *file, struct vm_area_struct *vma)
228228
{
229229
size_t size = vma->vm_end - vma->vm_start;

0 commit comments

Comments
 (0)