From cd6e663f48e4ccaf9832e2c17ee98c1f7135cd33 Mon Sep 17 00:00:00 2001 From: Balazs Gerofi Date: Mon, 10 Nov 2014 18:28:30 +0900 Subject: [PATCH] handle VM_RESERVED (non-existing since Linux 3.7.0) and do_mmap_pgoff() (unexported since Linux 3.5.0) in mcctrl's syscall.c --- executer/kernel/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executer/kernel/syscall.c b/executer/kernel/syscall.c index b1339717..f90b38ab 100644 --- a/executer/kernel/syscall.c +++ b/executer/kernel/syscall.c @@ -452,7 +452,7 @@ static int rus_mmap(struct file *file, struct vm_area_struct *vma) #if LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0) vma->vm_flags |= VM_RESERVED | VM_DONTEXPAND | VM_MIXEDMAP; #else - vma->vm_flags |= VM_DONTDUMP | VM_DONTEXPAND | VM_MIXEDMAP; + vma->vm_flags |= VM_IO | VM_DONTDUMP | VM_DONTEXPAND | VM_PFNMAP; #endif vma->vm_ops = &rus_vmops; return 0;