Home
last modified time | relevance | path

Searched refs:PROT_WRITE (Results 1 – 23 of 23) sorted by relevance

/bionic/tests/
Dsys_mman_test.cpp27 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()
Dbuffer_tests.cpp376 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()
Dsys_prctl_test.cpp38 void* p = mmap(NULL, page_size * 3, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
Dandroid_unsafe_frame_pointer_chase_test.cpp136 mmap(nullptr, kStackSize * 2, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST()
Dutils.h130 record.perms |= PROT_WRITE; in parse_maps()
Dpthread_test.cpp167 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()
Ddlext_test.cpp2039 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/
Dmman-common.h22 #define PROT_WRITE 0x2 macro
/bionic/libc/upstream-openbsd/android/include/
Darc4random.h69 if ((p = mmap(NULL, sizeof(*p), PROT_READ|PROT_WRITE, in _rs_allocate()
/bionic/libc/bionic/
Dandroid_set_abort_message.cpp81 void* map = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in android_set_abort_message()
Dpthread_create.cpp75 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()
Datexit.cpp159 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()
Dbionic_allocator.cpp195 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()
Dfdsan.cpp87 mmap(nullptr, aligned_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in at()
/bionic/libc/private/
DWriteProtected.h68 set_protection(PROT_READ | PROT_WRITE); in mutate()
/bionic/tests/headers/posix/
Dsys_mman_h.c37 MACRO(PROT_WRITE); in sys_mman_h()
/bionic/linker/
Dlinker_block_allocator_test.cpp132 allocator.protect_all(PROT_READ | PROT_WRITE); in protect_all()
Dlinker_block_allocator.cpp124 mmap(nullptr, kAllocateSize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)); in create_new_page()
Dlinker_phdr.cpp139 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()
Dlinker_cfi.cpp56 reinterpret_cast<char*>(mmap(nullptr, aligned_end - aligned_start, PROT_READ | PROT_WRITE, in ShadowWrite()
/bionic/libc/system_properties/
Dcontexts_serialized.cpp48 void* const map_result = mmap(nullptr, context_nodes_mmap_size, PROT_READ | PROT_WRITE, in InitializeContextNodes()
Dprop_area.cpp95 void* const memory_area = mmap(nullptr, pa_size_, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in map_prop_area_rw()
/bionic/libc/stdio/
Dprintf_common.h541 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()