/third_party/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap19.c | 40 mm1 = SAFE_MMAP(0, LEN, PROT_READ, MAP_PRIVATE, f1, 0); in run() 41 mm2 = SAFE_MMAP(0, LEN, PROT_READ, MAP_PRIVATE, f2, 0); in run() 55 mm1 = SAFE_MMAP(save_mm2, LEN, PROT_READ, MAP_PRIVATE, f1, 0); in run() 56 mm2 = SAFE_MMAP(save_mm1, LEN, PROT_READ, MAP_PRIVATE, f2, 0); in run()
|
D | mmap18.c | 92 start = SAFE_MMAP(NULL, reserved_size, PROT_READ | PROT_WRITE, in allocate_stack() 96 SAFE_MMAP((start + reserved_size - mapped_size), mapped_size, PROT_READ | PROT_WRITE, in allocate_stack() 186 SAFE_MMAP(stack, page_size, PROT_READ | PROT_WRITE, in grow_stack_fail()
|
D | mmap16.c | 201 addr = SAFE_MMAP(NULL, NULL, page_size * 2, PROT_WRITE | PROT_READ, in do_child() 205 addr = SAFE_MMAP(NULL, addr, FS_BLOCKSIZE, PROT_WRITE | PROT_READ, in do_child()
|
/third_party/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise02.c | 149 file1 = SAFE_MMAP(0, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in setup() 150 file2 = SAFE_MMAP(0, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in setup() 151 file3 = SAFE_MMAP(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in setup() 152 shared_anon = SAFE_MMAP(0, MAP_SIZE, PROT_READ, MAP_SHARED | in setup()
|
D | madvise01.c | 78 sfile = SAFE_MMAP(NULL, st.st_size, in setup() 83 amem = SAFE_MMAP(NULL, st.st_size, in setup()
|
D | madvise05.c | 28 p = SAFE_MMAP(NULL, ALLOC_SIZE, PROT_READ, in verify_madvise()
|
/third_party/ltp/testcases/kernel/syscalls/mlock/ |
D | mlock02.c | 119 addr = SAFE_MMAP(cleanup, NULL, len, PROT_READ, in test_enomem1() 143 addr = SAFE_MMAP(cleanup, NULL, len, PROT_READ, in test_enomem2() 172 addr = SAFE_MMAP(cleanup, NULL, len, PROT_READ, in test_eperm()
|
/third_party/ltp/testcases/kernel/syscalls/migrate_pages/ |
D | migrate_pages02.c | 144 private = SAFE_MMAP(NULL, getpagesize(), PROT_READ | PROT_WRITE, in test_migrate_current_process() 156 shared = SAFE_MMAP(NULL, getpagesize(), PROT_READ | PROT_WRITE, in test_migrate_current_process() 169 private = SAFE_MMAP(NULL, getpagesize(), in test_migrate_current_process() 205 private = SAFE_MMAP(NULL, getpagesize(), in test_migrate_other_process()
|
/third_party/ltp/testcases/cve/ |
D | cve-2017-17052.c | 33 do_exit = SAFE_MMAP(NULL, sizeof(*do_exit), PROT_READ|PROT_WRITE, in setup() 47 SAFE_MMAP(NULL, 0x1000000, PROT_READ, in mmap_thread()
|
/third_party/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress04.c | 31 mmap_area = SAFE_MMAP(NULL, page_size * NUM_PAGES, PROT_NONE, in setup() 75 SAFE_MMAP(mmap_area + page_size * mapped_pages++, in mmapstress04()
|
/third_party/ltp/testcases/kernel/syscalls/mlock2/ |
D | mlock202.c | 90 addr = SAFE_MMAP(NULL, pgsz, PROT_WRITE, in setup() 92 unmapped_addr = SAFE_MMAP(NULL, pgsz * PAGES, PROT_READ, in setup()
|
/third_party/ltp/testcases/kernel/syscalls/userfaultfd/ |
D | userfaultfd01.c | 36 page = SAFE_MMAP(NULL, page_size, PROT_READ | PROT_WRITE, in set_pages() 38 copy_page = SAFE_MMAP(NULL, page_size, PROT_READ | PROT_WRITE, in set_pages()
|
/third_party/ltp/testcases/kernel/syscalls/remap_file_pages/ |
D | remap_file_pages02.c | 135 data = SAFE_MMAP((void *)WINDOW_START, page_sz, PROT_READ | PROT_WRITE, in setup() 138 data01 = SAFE_MMAP(NULL, page_sz, PROT_READ | PROT_WRITE, MAP_PRIVATE, in setup()
|
/third_party/ltp/testcases/kernel/syscalls/io_uring/ |
D | io_uring01.c | 89 sptr = SAFE_MMAP(0, sptr_size, in setup_io_uring_test() 103 s->sqes = SAFE_MMAP(0, p.sq_entries * in setup_io_uring_test() 112 cptr = SAFE_MMAP(0, cptr_size, in setup_io_uring_test()
|
/third_party/ltp/testcases/kernel/tracing/pt_test/ |
D | pt_test.c | 64 buf_ev[0] = SAFE_MMAP(NULL, INTEL_PT_MEMSIZE, PROT_READ | PROT_WRITE, in create_map() 71 buf_ev[1] = SAFE_MMAP(NULL, bufsize, pro_flag, in create_map()
|
/third_party/ltp/testcases/kernel/syscalls/mincore/ |
D | mincore01.c | 114 t = SAFE_MMAP(cleanup, NULL, global_len, PROT_READ | PROT_WRITE, in setup2() 182 global_pointer = SAFE_MMAP(cleanup, NULL, global_len * 2, in setup()
|
/third_party/ltp/testcases/kernel/syscalls/mprotect/ |
D | mprotect04.c | 102 addr = SAFE_MMAP(cleanup, 0, page_sz, PROT_READ | PROT_WRITE, in testfunc_protnone() 235 p = SAFE_MMAP(cleanup, 0, page_sz, PROT_READ | PROT_WRITE, in testfunc_protexec()
|
/third_party/ltp/testcases/kernel/mem/mtest06/ |
D | mmap1.c | 102 map_address = SAFE_MMAP(distant_area, in map_write_unmap() 204 distant_area = SAFE_MMAP(0, distant_mmap_size, PROT_WRITE | PROT_READ, in setup()
|
/third_party/ltp/testcases/kernel/device-drivers/zram/ |
D | zram03.c | 52 s = SAFE_MMAP(NULL, SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in write_device() 70 s = SAFE_MMAP(NULL, SIZE, PROT_READ, MAP_PRIVATE, fd, 0); in verify_device()
|
/third_party/ltp/testcases/kernel/security/integrity/ima/src/ |
D | ima_mmap.c | 35 file = SAFE_MMAP(NULL, MMAPSIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in run()
|
/third_party/ltp/testcases/kernel/syscalls/clone/ |
D | clone03.c | 43 child_pid = SAFE_MMAP(NULL, sizeof(*child_pid), PROT_READ | PROT_WRITE, in setup()
|
/third_party/ltp/testcases/kernel/syscalls/init_module/ |
D | init_module01.c | 33 buf = SAFE_MMAP(0, sb.st_size, PROT_READ|PROT_EXEC, MAP_PRIVATE, fd, 0); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create01.c | 170 p = SAFE_MMAP(NULL, MFD_DEF_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, in test_share_mmap() 180 p = SAFE_MMAP(NULL, MFD_DEF_SIZE, PROT_READ, MAP_PRIVATE, fd, 0); in test_share_mmap()
|
/third_party/ltp/testcases/kernel/mem/vma/ |
D | vma04.c | 128 addr = SAFE_MMAP(cleanup, NULL, pagesize * 8, PROT_NONE, in init() 130 SAFE_MMAP(cleanup, addr + pagesize, pagesize * 6, in init()
|
/third_party/ltp/testcases/kernel/syscalls/getpid/ |
D | getpid02.c | 54 child_pid = SAFE_MMAP(NULL, sizeof(pid_t), PROT_READ | PROT_WRITE, in setup()
|