defuzz patches
authorRaspbian kernel package updater <root@raspbian.org>
Tue, 25 Jul 2017 04:08:33 +0000 (04:08 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Tue, 25 Jul 2017 04:08:33 +0000 (04:08 +0000)
debian/patches/bugfix/all/mm-fix-new-crash-in-unmapped_area_topdown.patch

index ccd5663a97162e1f076e2c9f78f9e8d5849aec13..0486ead1d227210ca6dd3ac5bb5df9d6912f507b 100644 (file)
@@ -22,9 +22,11 @@ Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  mm/mmap.c | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)
 
---- a/mm/mmap.c
-+++ b/mm/mmap.c
-@@ -1813,7 +1813,8 @@ check_current:
+Index: usextract/mm/mmap.c
+===================================================================
+--- usextract.orig/mm/mmap.c
++++ usextract/mm/mmap.c
+@@ -1799,7 +1799,8 @@ check_current:
                /* Check if current node has a suitable gap */
                if (gap_start > high_limit)
                        return -ENOMEM;
@@ -34,8 +36,8 @@ Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
                        goto found;
  
                /* Visit right subtree if it looks promising */
-@@ -1916,7 +1917,8 @@ check_current:
-               gap_end = vm_start_gap(vma);
+@@ -1902,7 +1903,8 @@ check_current:
+               gap_end = vma->vm_start;
                if (gap_end < low_limit)
                        return -ENOMEM;
 -              if (gap_start <= high_limit && gap_end - gap_start >= length)