/bionic/tests/ |
D | sys_mman_test.cpp | 27 void* map = mmap(nullptr, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST() 33 void* map = mmap64(nullptr, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST() 77 void* map = mmap(nullptr, sizeof(STRING_MSG), PROT_WRITE, MAP_SHARED, tf.fd, 0); in TEST() 149 void* map = mmap(nullptr, pagesize, PROT_WRITE, MAP_SHARED, tf.fd, pagesize); in TEST() 157 map = mmap(nullptr, pagesize, PROT_WRITE, MAP_SHARED, tf.fd, 2 * pagesize); in TEST() 184 void* map = mmap(nullptr, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, tempfile.fd, 0); in TEST() 202 void* map = mmap(nullptr, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
|
D | buffer_tests.cpp | 376 ASSERT_TRUE(MprotectHeap(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunSingleBufferOverreadTest() 402 ASSERT_TRUE(MprotectHeap(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunSrcDstBufferOverreadTest() 456 ASSERT_TRUE(MprotectHeap(&memory1[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunCmpBufferOverreadTest() 457 ASSERT_TRUE(MprotectHeap(&memory2[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunCmpBufferOverreadTest()
|
D | sys_prctl_test.cpp | 38 void* p = mmap(NULL, page_size * 3, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
|
D | android_unsafe_frame_pointer_chase_test.cpp | 136 mmap(nullptr, kStackSize * 2, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST()
|
D | utils.h | 130 record.perms |= PROT_WRITE; in parse_maps()
|
D | pthread_test.cpp | 167 void* stack = mmap(nullptr, stack_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in TEST() 709 void* stack = mmap(nullptr, stack_size, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0); in TEST() 1847 …void* sig_stack = mmap(nullptr, sig_stack_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOU… in TEST()
|
D | dlext_test.cpp | 2039 ASSERT_TRUE((rec.perms & PROT_WRITE) == 0); in TEST() 2056 void* map = mmap(addr, size, PROT_READ | PROT_WRITE, in TEST()
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | mman-common.h | 22 #define PROT_WRITE 0x2 macro
|
/bionic/libc/upstream-openbsd/android/include/ |
D | arc4random.h | 69 if ((p = mmap(NULL, sizeof(*p), PROT_READ|PROT_WRITE, in _rs_allocate()
|
/bionic/libc/bionic/ |
D | android_set_abort_message.cpp | 81 void* map = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in android_set_abort_message()
|
D | pthread_create.cpp | 75 PROT_READ | PROT_WRITE, in __allocate_temp_bionic_tls() 91 …void* stack_base = mmap(nullptr, SIGNAL_STACK_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOU… in __init_alternate_signal_stack() 132 mprotect(scs, SCS_SIZE, PROT_READ | PROT_WRITE); in __init_shadow_call_stack() 229 PROT_READ | PROT_WRITE) != 0) { in __allocate_thread_mapping()
|
D | atexit.cpp | 159 const int prot = PROT_READ | (writable ? PROT_WRITE : 0); in set_writable() 192 new_pages = mmap(nullptr, new_capacity_bytes, PROT_READ | PROT_WRITE, in expand_capacity()
|
D | bionic_allocator.cpp | 195 void* const map_ptr = mmap(nullptr, PAGE_SIZE, PROT_READ | PROT_WRITE, in alloc_page() 276 void* map_ptr = mmap(nullptr, allocated_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, in alloc_mmap()
|
D | fdsan.cpp | 87 mmap(nullptr, aligned_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in at()
|
/bionic/libc/private/ |
D | WriteProtected.h | 68 set_protection(PROT_READ | PROT_WRITE); in mutate()
|
/bionic/tests/headers/posix/ |
D | sys_mman_h.c | 37 MACRO(PROT_WRITE); in sys_mman_h()
|
/bionic/linker/ |
D | linker_block_allocator_test.cpp | 132 allocator.protect_all(PROT_READ | PROT_WRITE); in protect_all()
|
D | linker_block_allocator.cpp | 124 mmap(nullptr, kAllocateSize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)); in create_new_page()
|
D | linker_phdr.cpp | 139 MAYBE_MAP_FLAG((x), PF_W, PROT_WRITE)) 726 if ((prot & (PROT_EXEC | PROT_WRITE)) == (PROT_EXEC | PROT_WRITE)) { in LoadSegments() 807 if ((prot & PROT_WRITE) != 0) { in _phdr_table_set_load_prot() 872 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, PROT_WRITE); in phdr_table_unprotect_segments()
|
D | linker_cfi.cpp | 56 reinterpret_cast<char*>(mmap(nullptr, aligned_end - aligned_start, PROT_READ | PROT_WRITE, in ShadowWrite()
|
/bionic/libc/system_properties/ |
D | contexts_serialized.cpp | 48 void* const map_result = mmap(nullptr, context_nodes_mmap_size, PROT_READ | PROT_WRITE, in InitializeContextNodes()
|
D | prop_area.cpp | 95 void* const memory_area = mmap(nullptr, pa_size_, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in map_prop_area_rw()
|
/bionic/libc/stdio/ |
D | printf_common.h | 541 PROT_WRITE | PROT_READ, in __find_arguments() 652 PROT_WRITE | PROT_READ, in __grow_type_table() 658 PROT_WRITE | PROT_READ, in __grow_type_table()
|