From: Greg Kroah-Hartman Date: Sat, 24 Jun 2017 15:05:06 +0000 (+0200) Subject: updated queue-3.18/mm-larger-stack-guard-gap-between-vmas.patch with Hugh's update X-Git-Tag: v3.18.58~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9474c8c3ff835996c8053729b5436d52fec063c0;p=thirdparty%2Fkernel%2Fstable-queue.git updated queue-3.18/mm-larger-stack-guard-gap-between-vmas.patch with Hugh's update --- diff --git a/queue-3.18/mm-larger-stack-guard-gap-between-vmas.patch b/queue-3.18/mm-larger-stack-guard-gap-between-vmas.patch index 3320ba8b0f7..6ca28f0d038 100644 --- a/queue-3.18/mm-larger-stack-guard-gap-between-vmas.patch +++ b/queue-3.18/mm-larger-stack-guard-gap-between-vmas.patch @@ -78,10 +78,10 @@ Signed-off-by: Greg Kroah-Hartman fs/hugetlbfs/inode.c | 2 fs/proc/task_mmu.c | 4 include/linux/mm.h | 53 ++++++------ - mm/gup.c | 6 - + mm/gup.c | 5 - mm/memory.c | 38 --------- - mm/mmap.c | 147 +++++++++++++++++++++--------------- - 20 files changed, 148 insertions(+), 156 deletions(-) + mm/mmap.c | 149 +++++++++++++++++++++--------------- + 20 files changed, 147 insertions(+), 158 deletions(-) --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -417,7 +417,7 @@ Signed-off-by: Greg Kroah-Hartman return (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; --- a/mm/gup.c +++ b/mm/gup.c -@@ -275,10 +275,8 @@ static int faultin_page(struct task_stru +@@ -275,11 +275,6 @@ static int faultin_page(struct task_stru unsigned int fault_flags = 0; int ret; @@ -425,11 +425,10 @@ Signed-off-by: Greg Kroah-Hartman - if ((*flags & FOLL_MLOCK) && - (stack_guard_page_start(vma, address) || - stack_guard_page_end(vma, address + PAGE_SIZE))) -+ /* mlock all present pages, but do not fault in new pages */ -+ if (*flags & FOLL_MLOCK) - return -ENOENT; +- return -ENOENT; if (*flags & FOLL_WRITE) fault_flags |= FAULT_FLAG_WRITE; + if (nonblocking) --- a/mm/memory.c +++ b/mm/memory.c @@ -2580,40 +2580,6 @@ out_release: @@ -558,6 +557,15 @@ Signed-off-by: Greg Kroah-Hartman else if (!adjust_next) vma_gap_update(next); } +@@ -917,7 +931,7 @@ again: remove_next = 1 + (end > next-> + else if (next) + vma_gap_update(next); + else +- mm->highest_vm_end = end; ++ VM_WARN_ON(mm->highest_vm_end != vm_end_gap(vma)); + } + if (insert && file) + uprobe_mmap(insert); @@ -1740,7 +1754,7 @@ unsigned long unmapped_area(struct vm_un while (true) {