Home
last modified time | relevance | path

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

1234

/third_party/ltp/testcases/kernel/syscalls/mmap/
Dmmap19.c40 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()
Dmmap18.c92 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()
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()
/third_party/ltp/testcases/kernel/syscalls/madvise/
Dmadvise02.c149 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()
Dmadvise01.c78 sfile = SAFE_MMAP(NULL, st.st_size, in setup()
83 amem = SAFE_MMAP(NULL, st.st_size, in setup()
Dmadvise05.c28 p = SAFE_MMAP(NULL, ALLOC_SIZE, PROT_READ, in verify_madvise()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages02.c144 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/
Dcve-2017-17052.c33 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/
Dmmapstress04.c31 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/
Dmlock202.c90 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/
Duserfaultfd01.c36 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/
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()
/third_party/ltp/testcases/kernel/syscalls/io_uring/
Dio_uring01.c89 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/
Dpt_test.c64 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/
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()
/third_party/ltp/testcases/kernel/syscalls/mprotect/
Dmprotect04.c102 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/
Dmmap1.c102 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/
Dzram03.c52 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/
Dima_mmap.c35 file = SAFE_MMAP(NULL, MMAPSIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in run()
/third_party/ltp/testcases/kernel/syscalls/clone/
Dclone03.c43 child_pid = SAFE_MMAP(NULL, sizeof(*child_pid), PROT_READ | PROT_WRITE, in setup()
/third_party/ltp/testcases/kernel/syscalls/init_module/
Dinit_module01.c33 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/
Dmemfd_create01.c170 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/
Dvma04.c128 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/
Dgetpid02.c54 child_pid = SAFE_MMAP(NULL, sizeof(pid_t), PROT_READ | PROT_WRITE, in setup()

1234