/external/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise02.c | 158 file1 = SAFE_MMAP(0, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in setup() 159 file2 = SAFE_MMAP(0, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in setup() 160 file3 = SAFE_MMAP(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in setup() 161 shared_anon = SAFE_MMAP(0, MAP_SIZE, PROT_READ, MAP_SHARED | in setup()
|
D | madvise01.c | 87 sfile = SAFE_MMAP(NULL, st.st_size, in setup() 92 amem = SAFE_MMAP(NULL, st.st_size, in setup()
|
D | madvise05.c | 37 p = SAFE_MMAP(NULL, ALLOC_SIZE, PROT_READ, in verify_madvise()
|
D | madvise07.c | 58 mem = SAFE_MMAP(NULL, in run_child()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/migrate_pages/ |
D | migrate_pages02.c | 168 private = SAFE_MMAP(NULL, getpagesize(), PROT_READ | PROT_WRITE, in test_migrate_current_process() 180 shared = SAFE_MMAP(NULL, getpagesize(), PROT_READ | PROT_WRITE, in test_migrate_current_process() 193 private = SAFE_MMAP(NULL, getpagesize(), in test_migrate_current_process() 229 private = SAFE_MMAP(NULL, getpagesize(), in test_migrate_other_process()
|
/external/ltp/testcases/cve/ |
D | cve-2017-17052.c | 45 do_exit = SAFE_MMAP(NULL, sizeof(*do_exit), PROT_READ|PROT_WRITE, in setup() 59 SAFE_MMAP(NULL, 0x1000000, PROT_READ, in mmap_thread()
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress04.c | 43 mmap_area = SAFE_MMAP(NULL, page_size * NUM_PAGES, PROT_NONE, in setup() 87 SAFE_MMAP(mmap_area + page_size * mapped_pages++, in mmapstress04()
|
/external/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()
|
D | mlock203.c | 76 addr = SAFE_MMAP(NULL, pgsz, PROT_WRITE, in setup()
|
/external/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()
|
/external/ltp/testcases/kernel/tracing/pt_test/ |
D | pt_test.c | 52 buf_ev[0] = SAFE_MMAP(NULL, INTEL_PT_MEMSIZE, PROT_READ | PROT_WRITE, in create_map() 58 buf_ev[1] = SAFE_MMAP(NULL, bufsize, PROT_READ | PROT_WRITE, in create_map()
|
/external/ltp/testcases/kernel/syscalls/mmap/ |
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()
|
/external/ltp/testcases/kernel/device-drivers/zram/ |
D | zram03.c | 97 s = SAFE_MMAP(cleanup, NULL, SIZE, PROT_READ | PROT_WRITE, in write_device() 116 s = SAFE_MMAP(cleanup, NULL, SIZE, PROT_READ, MAP_PRIVATE, fd, 0); in verify_device()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/mprotect/ |
D | mprotect04.c | 102 addr = SAFE_MMAP(cleanup, 0, page_sz, PROT_READ | PROT_WRITE, in testfunc_protnone() 264 p = SAFE_MMAP(cleanup, 0, page_sz, PROT_READ | PROT_WRITE, in testfunc_protexec()
|
/external/ltp/testcases/kernel/mem/mtest06/ |
D | mmap1.c | 97 map_address = SAFE_MMAP(distant_area, in map_write_unmap() 190 distant_area = SAFE_MMAP(0, DISTANT_MMAP_SIZE, PROT_WRITE | PROT_READ, in setup()
|
/external/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 106 addr = SAFE_MMAP(NULL, TEST_PAGES * hpsz, PROT_READ | PROT_WRITE, in do_test() 118 ptr = SAFE_MMAP(NULL, TEST_PAGES * hpsz, in do_test()
|
/external/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create01.c | 179 p = SAFE_MMAP(NULL, MFD_DEF_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, in test_share_mmap() 189 p = SAFE_MMAP(NULL, MFD_DEF_SIZE, PROT_READ, MAP_PRIVATE, fd, 0); in test_share_mmap()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/futex/ |
D | futex_common.h | 40 futex = SAFE_MMAP(NULL, NULL, sizeof(*futex), PROT_READ | PROT_WRITE, in setup()
|
D | futex_wait04.c | 42 buf = SAFE_MMAP(NULL, NULL, pagesize, PROT_READ|PROT_WRITE, in verify_futex_wait()
|
/external/ltp/testcases/kernel/security/integrity/ima/src/ |
D | ima_mmap.c | 49 file = SAFE_MMAP(NULL, MMAPSIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in run()
|
/external/ltp/testcases/kernel/syscalls/write/ |
D | write03.c | 71 bad_addr = SAFE_MMAP(0, 1, PROT_NONE, in setup()
|
/external/ltp/testcases/kernel/mem/thp/ |
D | thp03.c | 53 p = SAFE_MMAP(NULL, unaligned_size, PROT_READ | PROT_WRITE, in thp_test()
|