Home
last modified time | relevance | path

Searched refs:PROT_NONE (Results 1 – 12 of 12) sorted by relevance

/bionic/tests/
Dbuffer_tests.cpp369 ASSERT_TRUE(MprotectHeap(&memory[pagesize], pagesize, PROT_NONE) == 0); in RunSingleBufferOverreadTest()
390 ASSERT_TRUE(MprotectHeap(&memory[pagesize], pagesize, PROT_NONE) == 0); in RunSrcDstBufferOverreadTest()
420 ASSERT_TRUE(MprotectHeap(&memory1[pagesize], pagesize, PROT_NONE) == 0); in RunCmpBufferOverreadTest()
428 ASSERT_TRUE(MprotectHeap(&memory2[pagesize], pagesize, PROT_NONE) == 0); in RunCmpBufferOverreadTest()
Dsys_mman_test.cpp227 ASSERT_EQ(MAP_FAILED, mmap(nullptr, kHuge, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)); in TEST()
231 void* map = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
247 void* map = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
260 void* map = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
Dsys_prctl_test.cpp40 ASSERT_EQ(0, mprotect(p, page_size, PROT_NONE)); in TEST()
Ddlext_test.cpp324 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
343 void* new_start = mmap(start, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
348 void* start = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
359 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
392 void* start = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
403 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
420 void* start = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
440 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in SetUp()
2049 PROT_NONE, MAP_ANON | MAP_PRIVATE, in TEST()
Dpthread_test.cpp2836 int prot = PROT_NONE; in TEST()
2841 prot = (prot == PROT_NONE) ? PROT_READ : PROT_NONE; in TEST()
Ddlfcn_test.cpp848 ASSERT_TRUE(mprotect(reinterpret_cast<void*>(page_start), PAGE_SIZE, PROT_NONE) != 0); in TEST()
/bionic/libc/kernel/uapi/asm-generic/
Dmman-common.h25 #define PROT_NONE 0x0 macro
/bionic/tests/headers/posix/
Dsys_mman_h.c35 MACRO(PROT_NONE); in sys_mman_h()
/bionic/libc/bionic/
Dpthread_create.cpp92 if (mprotect(stack_base, PTHREAD_GUARD_SIZE, PROT_NONE) == -1) { in __init_alternate_signal_stack()
216 char* const space = static_cast<char*>(mmap(nullptr, mmap_size, PROT_NONE, flags, -1, 0)); in __allocate_thread_mapping()
/bionic/linker/
Dlinker_phdr.cpp527 void* mmap_ptr = mmap(nullptr, size, PROT_NONE, mmap_flags, -1, 0); in ReserveWithAlignmentPadding()
547 reinterpret_cast<uint8_t*>(mmap(nullptr, mmap_size, PROT_NONE, mmap_flags, -1, 0)); in ReserveWithAlignmentPadding()
563 mmap_ptr = reinterpret_cast<uint8_t*>(mmap(nullptr, mmap_size, PROT_NONE, mmap_flags, -1, 0)); in ReserveWithAlignmentPadding()
Dlinker_cfi.cpp158 mmap(nullptr, kShadowSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0); in MapShadow()
Dlinker.cpp309 mmap(reinterpret_cast<void*>(si->base), si->size, PROT_NONE, in soinfo_free()