|
@@ -1786,14 +1786,6 @@ SYSCALL_DEFINE1(umask, int, mask)
|
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_CHECKPOINT_RESTORE
|
|
|
-static bool vma_flags_mismatch(struct vm_area_struct *vma,
|
|
|
- unsigned long required,
|
|
|
- unsigned long banned)
|
|
|
-{
|
|
|
- return (vma->vm_flags & required) != required ||
|
|
|
- (vma->vm_flags & banned);
|
|
|
-}
|
|
|
-
|
|
|
static int prctl_set_mm_exe_file(struct mm_struct *mm, unsigned int fd)
|
|
|
{
|
|
|
struct vm_area_struct *vma;
|
|
@@ -1931,12 +1923,6 @@ static int prctl_set_mm(int opt, unsigned long addr,
|
|
|
error = -EFAULT;
|
|
|
goto out;
|
|
|
}
|
|
|
-#ifdef CONFIG_STACK_GROWSUP
|
|
|
- if (vma_flags_mismatch(vma, VM_READ | VM_WRITE | VM_GROWSUP, 0))
|
|
|
-#else
|
|
|
- if (vma_flags_mismatch(vma, VM_READ | VM_WRITE | VM_GROWSDOWN, 0))
|
|
|
-#endif
|
|
|
- goto out;
|
|
|
if (opt == PR_SET_MM_START_STACK)
|
|
|
mm->start_stack = addr;
|
|
|
else if (opt == PR_SET_MM_ARG_START)
|