Lines Matching full:guard

166 	/* Establish a guard page at the end of the mapping. */  in TEST_F()
170 /* Check that both guard pages result in SIGSEGV. */ in TEST_F()
174 /* Remove the first guard page. */ in TEST_F()
180 /* Remove the last guard page. */ in TEST_F()
189 * these be faulted in, so this also tests that we can install guard in TEST_F()
194 /* Make sure they are all guard pages. */ in TEST_F()
208 /* Remove guard pages. */ in TEST_F()
219 * Now remove all guard pages, make sure we don't remove existing in TEST_F()
274 * Now mark the whole range as guard pages and make sure all VMAs are as in TEST_F()
395 /* We want guard markers at start/end of each VMA. */ in TEST_F()
427 /* Now guard in one step. */ in TEST_F()
469 /* Assert that unmapping ranges does not leave guard markers behind. */
479 /* Guard first and last pages. */ in TEST_F()
507 /* Assert that mprotect() operations have no bearing on guard markers. */
518 /* Guard the middle of the range. */ in TEST_F()
533 /* Make sure we can guard again without issue.*/ in TEST_F()
555 /* Split and merge VMAs and make sure guard pages still behave. */
566 /* Guard the whole range. */ in TEST_F()
614 /* Now make sure guard pages are established. */ in TEST_F()
623 /* Now guard everything again. */ in TEST_F()
686 /* Assert that MADV_DONTNEED does not remove guard markers. */
704 /* Guard every other page. */ in TEST_F()
715 /* Check to ensure guard markers are still in place. */ in TEST_F()
739 /* Assert that mlock()'ed pages work correctly with guard markers. */
760 /* Now try to guard, should fail with EINVAL. */ in TEST_F()
767 /* Guard first half of range, should now succeed. */ in TEST_F()
770 /* Make sure guard works. */ in TEST_F()
784 * Now lock the latter part of the range. We can't lock the guard pages, in TEST_F()
791 * Now remove guard pages, we permit mlock()'d ranges to have guard in TEST_F()
796 /* Now check that no guard pages remain. */ in TEST_F()
809 * guard markers where possible.
823 /* Place guard markers at both ends of the 5 page span. */ in TEST_F()
827 /* Make sure the guard pages are in effect. */ in TEST_F()
841 /* Make sure the guard markers are retained. */ in TEST_F()
854 * guard markers where possible.
856 * Expanding should retain guard pages, only now in different position. The user
857 * will have to remove guard pages manually to fix up (they'd have to do the
872 /* Place guard markers at both ends of the 5 page span. */ in TEST_F()
885 * Make sure the guard markers are retained in their original positions. in TEST_F()
901 * Again, make sure the guard markers are retained in their original positions. in TEST_F()
907 * A real user would have to remove guard markers, but would reasonably in TEST_F()
909 * guard markers. in TEST_F()
917 * guard markers where possible.
934 /* Place guard markers at both ends of the 5 page span. */ in TEST_F()
946 /* We expect the guard marker at the start to be retained... */ in TEST_F()
949 /* ...But remaining pages will not have guard markers. */ in TEST_F()
957 * As with expansion, a real user would have to remove guard pages and in TEST_F()
969 /* Again, we expect the guard marker at the start to be retained... */ in TEST_F()
972 /* ...But remaining pages will not have guard markers. */ in TEST_F()
985 * retain guard pages.
999 /* Establish guard pages in the first 5 pages. */ in TEST_F()
1040 * and then guard and unguard the range.
1074 /* Establish guard pages across the whole range. */ in TEST_F()
1080 * By removing the guard pages, the page tables will be in TEST_F()
1128 /* Guard the first 5 pages. */ in TEST_F()
1136 /* Guard will have been wiped. */ in TEST_F()
1150 /* Guard markers should be in effect.*/ in TEST_F()
1162 /* Ensure that MADV_FREE retains guard entries as expected. */
1174 /* Guard range. */ in TEST_F()
1187 /* This should leave the guard markers in place. */ in TEST_F()
1209 /* Guard range. */ in TEST_F()
1224 /* Ensure that MADV_COLD, MADV_PAGEOUT do not remove guard markers. */
1236 /* Guard range. */ in TEST_F()
1246 /* Now mark cold. This should have no impact on guard markers. */ in TEST_F()
1270 /* Ensure that guard pages do not break userfaultd. */
1304 /* Guard the range. This should not trigger the uffd. */ in TEST_F()