Home
last modified time | relevance | path

Searched refs:SAFE_MMAP (Results 1 – 25 of 63) sorted by relevance

123

/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise02.c158 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()
Dmadvise01.c87 sfile = SAFE_MMAP(NULL, st.st_size, in setup()
92 amem = SAFE_MMAP(NULL, st.st_size, in setup()
Dmadvise05.c37 p = SAFE_MMAP(NULL, ALLOC_SIZE, PROT_READ, in verify_madvise()
Dmadvise07.c58 mem = SAFE_MMAP(NULL, in run_child()
/external/ltp/testcases/kernel/syscalls/mlock/
Dmlock02.c119 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/
Dmigrate_pages02.c168 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/
Dcve-2017-17052.c45 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/
Dmmapstress04.c43 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/
Dmlock202.c90 addr = SAFE_MMAP(NULL, pgsz, PROT_WRITE, in setup()
92 unmapped_addr = SAFE_MMAP(NULL, pgsz * PAGES, PROT_READ, in setup()
Dmlock203.c76 addr = SAFE_MMAP(NULL, pgsz, PROT_WRITE, in setup()
/external/ltp/testcases/kernel/syscalls/remap_file_pages/
Dremap_file_pages02.c135 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/
Dpt_test.c52 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/
Dmmap16.c201 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/
Dzram03.c97 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/
Dmincore01.c114 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/
Dmprotect04.c102 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/
Dmmap1.c97 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/
Dmove_pages12.c106 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/
Dmemfd_create01.c179 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/
Dvma04.c128 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/
Dfutex_common.h40 futex = SAFE_MMAP(NULL, NULL, sizeof(*futex), PROT_READ | PROT_WRITE, in setup()
Dfutex_wait04.c42 buf = SAFE_MMAP(NULL, NULL, pagesize, PROT_READ|PROT_WRITE, in verify_futex_wait()
/external/ltp/testcases/kernel/security/integrity/ima/src/
Dima_mmap.c49 file = SAFE_MMAP(NULL, MMAPSIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in run()
/external/ltp/testcases/kernel/syscalls/write/
Dwrite03.c71 bad_addr = SAFE_MMAP(0, 1, PROT_NONE, in setup()
/external/ltp/testcases/kernel/mem/thp/
Dthp03.c53 p = SAFE_MMAP(NULL, unaligned_size, PROT_READ | PROT_WRITE, in thp_test()

123