All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20200402041025.39b--EZsz%akpm@linux-foundation.org>

diff --git a/a/1.txt b/N1/1.txt
index f828145..1668644 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -360,4 +360,27 @@ Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
 -	if ((page1_flags & UNEVICTABLE_BIT) == 0) {
 -		printf("Failed to make present page unevictable\n");
 -		goto unmap;
--	}
\ No newline at end of file
+-	}
+-
+ 	if (!is_vma_lock_on_fault((unsigned long)map) ||
+ 	    !is_vma_lock_on_fault((unsigned long)map + page_size)) {
+ 		printf("VMA with present pages is not marked lock on fault\n");
+@@ -507,7 +348,7 @@ static int test_munlockall()
+ 		goto out;
+ 	}
+ 
+-	if (lock_check(map))
++	if (!lock_check((unsigned long)map))
+ 		goto unmap;
+ 
+ 	if (munlockall()) {
+@@ -549,7 +390,7 @@ static int test_munlockall()
+ 		goto out;
+ 	}
+ 
+-	if (lock_check(map))
++	if (!lock_check((unsigned long)map))
+ 		goto unmap;
+ 
+ 	if (munlockall()) {
+_
\ No newline at end of file
diff --git a/a/content_digest b/N1/content_digest
index 442d00f..4e64827 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -391,7 +391,30 @@
   "-\tif ((page1_flags & UNEVICTABLE_BIT) == 0) {\n",
   "-\t\tprintf(\"Failed to make present page unevictable\\n\");\n",
   "-\t\tgoto unmap;\n",
-  "-\t}"
+  "-\t}\n",
+  "-\n",
+  " \tif (!is_vma_lock_on_fault((unsigned long)map) ||\n",
+  " \t    !is_vma_lock_on_fault((unsigned long)map + page_size)) {\n",
+  " \t\tprintf(\"VMA with present pages is not marked lock on fault\\n\");\n",
+  "\@\@ -507,7 +348,7 \@\@ static int test_munlockall()\n",
+  " \t\tgoto out;\n",
+  " \t}\n",
+  " \n",
+  "-\tif (lock_check(map))\n",
+  "+\tif (!lock_check((unsigned long)map))\n",
+  " \t\tgoto unmap;\n",
+  " \n",
+  " \tif (munlockall()) {\n",
+  "\@\@ -549,7 +390,7 \@\@ static int test_munlockall()\n",
+  " \t\tgoto out;\n",
+  " \t}\n",
+  " \n",
+  "-\tif (lock_check(map))\n",
+  "+\tif (!lock_check((unsigned long)map))\n",
+  " \t\tgoto unmap;\n",
+  " \n",
+  " \tif (munlockall()) {\n",
+  "_"
 ]
 
-6191ad5f0456e2383727c36dbfa388b46156f2cae196385580403344af639d1a
+306412f6a689a07ae00419926a3c2f96c71828cef3ad64b5b1309feb2c57ccd8

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.