Lines Matching full:guard

329 	/* Establish a guard page at the end of the mapping. */  in TEST_F()
333 /* Check that both guard pages result in SIGSEGV. */ in TEST_F()
337 /* Remove the first guard page. */ in TEST_F()
343 /* Remove the last guard page. */ in TEST_F()
352 * these be faulted in, so this also tests that we can install guard in TEST_F()
357 /* Make sure they are all guard pages. */ in TEST_F()
371 /* Remove guard pages. */ in TEST_F()
382 * Now remove all guard pages, make sure we don't remove existing in TEST_F()
435 * Now mark the whole range as guard pages and make sure all VMAs are as in TEST_F()
549 /* We want guard markers at start/end of each VMA. */ in TEST_F()
579 /* Now guard in one step. */ in TEST_F()
620 /* Assert that unmapping ranges does not leave guard markers behind. */
630 /* Guard first and last pages. */ in TEST_F()
658 /* Assert that mprotect() operations have no bearing on guard markers. */
669 /* Guard the middle of the range. */ in TEST_F()
684 /* Make sure we can guard again without issue.*/ in TEST_F()
706 /* Split and merge VMAs and make sure guard pages still behave. */
717 /* Guard the whole range. */ in TEST_F()
765 /* Now make sure guard pages are established. */ in TEST_F()
774 /* Now guard everything again. */ in TEST_F()
837 /* Assert that MADV_DONTNEED does not remove guard markers. */
855 /* Guard every other page. */ in TEST_F()
866 /* Check to ensure guard markers are still in place. */ in TEST_F()
898 /* Assert that mlock()'ed pages work correctly with guard markers. */
919 /* Now try to guard, should fail with EINVAL. */ in TEST_F()
926 /* Guard first half of range, should now succeed. */ in TEST_F()
929 /* Make sure guard works. */ in TEST_F()
943 * Now lock the latter part of the range. We can't lock the guard pages, in TEST_F()
950 * Now remove guard pages, we permit mlock()'d ranges to have guard in TEST_F()
955 /* Now check that no guard pages remain. */ in TEST_F()
968 * guard markers where possible.
982 /* Place guard markers at both ends of the 5 page span. */ in TEST_F()
986 /* Make sure the guard pages are in effect. */ in TEST_F()
999 /* Make sure the guard markers are retained. */ in TEST_F()
1012 * guard markers where possible.
1014 * Expanding should retain guard pages, only now in different position. The user
1015 * will have to remove guard pages manually to fix up (they'd have to do the
1030 /* Place guard markers at both ends of the 5 page span. */ in TEST_F()
1043 * Make sure the guard markers are retained in their original positions. in TEST_F()
1058 * Again, make sure the guard markers are retained in their original positions. in TEST_F()
1064 * A real user would have to remove guard markers, but would reasonably in TEST_F()
1066 * guard markers. in TEST_F()
1074 * guard markers where possible.
1091 /* Place guard markers at both ends of the 5 page span. */ in TEST_F()
1103 /* We expect the guard marker at the start to be retained... */ in TEST_F()
1106 /* ...But remaining pages will not have guard markers. */ in TEST_F()
1114 * As with expansion, a real user would have to remove guard pages and in TEST_F()
1126 /* Again, we expect the guard marker at the start to be retained... */ in TEST_F()
1129 /* ...But remaining pages will not have guard markers. */ in TEST_F()
1142 * retain guard pages.
1156 /* Establish guard pages in the first 5 pages. */ in TEST_F()
1197 * and then guard and unguard the range.
1234 /* Establish guard pages across the whole range. */ in TEST_F()
1240 * By removing the guard pages, the page tables will be in TEST_F()
1291 /* Guard the first 5 pages. */ in TEST_F()
1299 /* Guard will have been wiped. */ in TEST_F()
1313 /* Guard markers should be in effect.*/ in TEST_F()
1325 /* Ensure that MADV_FREE retains guard entries as expected. */
1340 /* Guard range. */ in TEST_F()
1353 /* This should leave the guard markers in place. */ in TEST_F()
1375 /* Guard range. */ in TEST_F()
1390 /* Ensure that MADV_COLD, MADV_PAGEOUT do not remove guard markers. */
1402 /* Guard range. */ in TEST_F()
1412 /* Now mark cold. This should have no impact on guard markers. */ in TEST_F()
1436 /* Ensure that guard pages do not break userfaultd. */
1473 /* Guard the range. This should not trigger the uffd. */ in TEST_F()
1491 * aggressively read-ahead, then install guard regions and assert that it
1494 * We page out using MADV_PAGEOUT before checking guard regions so we drop page
1517 /* Mark every other page a guard page. */ in TEST_F()
1540 /* Now remove guard pages. */ in TEST_F()
1551 * Check that file-backed mappings implement guard regions with MAP_PRIVATE
1573 /* Install guard regions in every other page in the shared mapping. */ in TEST_F()
1587 /* Install guard regions in every other page in the private mapping. */ in TEST_F()
1601 /* Remove guard regions from shared mapping. */ in TEST_F()
1611 /* Remove guard regions from private mapping. */ in TEST_F()
1654 /* Ensure guard regions as expected. */ in TEST_F()
1660 /* Remove the guard regions altogether. */ in TEST_F()
1670 * As we removed guard regions, the private pages from the first 5 will in TEST_F()
1696 /* Test that guard regions established over a read-only mapping function correctly. */
1729 /* Assert that the guard regions are in place.*/ in TEST_F()
1736 /* Remove guard regions. */ in TEST_F()
1787 /* Finally, ensure that guard regions are intact as expected. */ in TEST_F()
1833 /* Here the guard regions will remain intact. */ in TEST_F()
1844 /* Again, guard pages will remain intact. */ in TEST_F()
1869 /* Install a guard region in the middle of the mapping. */ in TEST_F()
1879 * Where * is data and x is the guard region. in TEST_F()
1893 /* Ensure guard regions remain. */ in TEST_F()
1900 /* Now remove guard region throughout. */ in TEST_F()
1914 * Ensure that a memfd works correctly with guard regions, that we can write
1915 * seal it then open the mapping read-only and still establish guard regions
1916 * within, remove those guard regions and have everything work correctly.
1966 /* Now remove guard regions. */ in TEST_F()
1984 * Since we are now permitted to establish guard regions in read-only anonymous
1986 * use, test that guard regions function with a mapping to the anonymous zero
2016 /* Now remove all guard regions. */ in TEST_F()
2033 * Assert that /proc/$pid/pagemap correctly identifies guard region ranges.
2049 /* Read from pagemap, and assert no guard regions are detected. */ in TEST_F()
2058 /* Install a guard region in every other page. */ in TEST_F()
2065 /* Re-read from pagemap, and assert guard regions are detected. */ in TEST_F()