Lines Matching defs:seal

295 	/* we still can add seal to the first page and last page*/
379 /* seal the first page, this will split the VMA */
383 /* add seal to the remain 3 pages */
404 /* seal the last page */
463 /* seal 0 length will be OK, same as mprotect */
513 /* apply the same seal will be OK. idempotent. */
520 static void test_seal_mprotect(bool seal)
530 if (seal) {
536 if (seal)
544 static void test_seal_start_mprotect(bool seal)
554 if (seal) {
561 if (seal)
574 static void test_seal_end_mprotect(bool seal)
584 if (seal) {
596 if (seal)
604 static void test_seal_mprotect_unalign_len(bool seal)
614 if (seal) {
621 if (seal)
633 static void test_seal_mprotect_unalign_len_variant_2(bool seal)
642 if (seal) {
649 if (seal)
661 static void test_seal_mprotect_two_vma(bool seal)
675 if (seal) {
681 if (seal)
688 if (seal)
696 static void test_seal_mprotect_two_vma_with_split(bool seal)
711 if (seal) {
722 if (seal)
730 if (seal)
743 static void test_seal_mprotect_partial_mprotect(bool seal)
753 /* seal one page. */
754 if (seal) {
761 if (seal)
769 static void test_seal_mprotect_partial_mprotect_tail(bool seal)
785 if (seal) {
791 if (seal)
796 if (seal) {
848 static void test_seal_mprotect_split(bool seal)
862 /* seal all 4 pages. */
863 if (seal) {
870 if (seal)
877 if (seal)
885 static void test_seal_mprotect_merge(bool seal)
899 /* seal first two pages. */
900 if (seal) {
907 if (seal)
919 static void test_seal_munmap(bool seal)
929 if (seal) {
936 if (seal)
947 * seal the whole range
950 static void test_seal_munmap_two_vma(bool seal)
964 if (seal) {
970 if (seal)
976 if (seal)
987 * seal the whole 4 pages, will fail.
991 static void test_seal_munmap_vma_with_gap(bool seal)
1004 if (seal) {
1022 static void test_seal_munmap_partial_across_vmas(bool seal)
1033 if (seal) {
1039 if (seal)
1044 if (seal) {
1052 static void test_munmap_start_freed(bool seal)
1067 /* seal the last 3 pages. */
1068 if (seal) {
1075 if (seal) {
1092 static void test_munmap_end_freed(bool seal)
1106 /* seal the first 3 pages. */
1107 if (seal) {
1114 if (seal)
1122 static void test_munmap_middle_freed(bool seal)
1137 /* seal the first page. */
1138 if (seal) {
1145 if (seal) {
1166 static void test_seal_mremap_shrink(bool seal)
1177 if (seal) {
1184 if (seal) {
1195 static void test_seal_mremap_expand(bool seal)
1209 if (seal) {
1216 if (seal) {
1227 static void test_seal_mremap_move(bool seal)
1242 if (seal) {
1249 if (seal) {
1260 static void test_seal_mmap_overwrite_prot(bool seal)
1271 if (seal) {
1279 if (seal) {
1288 static void test_seal_mmap_expand(bool seal)
1302 if (seal) {
1310 if (seal) {
1319 static void test_seal_mmap_shrink(bool seal)
1330 if (seal) {
1338 if (seal) {
1347 static void test_seal_mremap_shrink_fixed(bool seal)
1361 if (seal) {
1369 if (seal) {
1378 static void test_seal_mremap_expand_fixed(bool seal)
1392 if (seal) {
1400 if (seal) {
1409 static void test_seal_mremap_move_fixed(bool seal)
1423 if (seal) {
1430 if (seal) {
1439 static void test_seal_mremap_move_fixed_zero(bool seal)
1450 if (seal) {
1460 if (seal) {
1470 static void test_seal_mremap_move_dontunmap(bool seal)
1481 if (seal) {
1488 if (seal) {
1499 static void test_seal_mremap_move_dontunmap_anyaddr(bool seal)
1510 if (seal) {
1529 if (seal) {
1632 static void test_seal_discard_ro_anon_on_rw(bool seal)
1642 if (seal) {
1651 /* base seal still apply. */
1653 if (seal)
1661 static void test_seal_discard_ro_anon_on_pkey(bool seal)
1680 if (seal) {
1693 if (seal)
1698 /* base seal still apply. */
1700 if (seal)
1708 static void test_seal_discard_ro_anon_on_filebacked(bool seal)
1726 if (seal) {
1736 if (seal)
1745 static void test_seal_discard_ro_anon_on_shared(bool seal)
1756 if (seal) {
1766 if (seal)
1774 static void test_seal_discard_ro_anon(bool seal)
1784 if (seal) {
1790 if (seal)
1796 if (seal)
1804 static void test_seal_discard_across_vmas(bool seal)
1814 if (seal) {
1820 if (seal)
1826 if (seal)
1835 static void test_seal_madvise_nodiscard(bool seal)
1845 if (seal) {
1859 if (seal)