/bionic/tests/ |
D | buffer_tests.cpp | 369 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()
|
D | sys_mman_test.cpp | 227 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()
|
D | sys_prctl_test.cpp | 40 ASSERT_EQ(0, mprotect(p, page_size, PROT_NONE)); in TEST()
|
D | dlext_test.cpp | 324 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()
|
D | pthread_test.cpp | 2836 int prot = PROT_NONE; in TEST() 2841 prot = (prot == PROT_NONE) ? PROT_READ : PROT_NONE; in TEST()
|
D | dlfcn_test.cpp | 848 ASSERT_TRUE(mprotect(reinterpret_cast<void*>(page_start), PAGE_SIZE, PROT_NONE) != 0); in TEST()
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | mman-common.h | 25 #define PROT_NONE 0x0 macro
|
/bionic/tests/headers/posix/ |
D | sys_mman_h.c | 35 MACRO(PROT_NONE); in sys_mman_h()
|
/bionic/libc/bionic/ |
D | pthread_create.cpp | 92 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/ |
D | linker_phdr.cpp | 527 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()
|
D | linker_cfi.cpp | 158 mmap(nullptr, kShadowSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0); in MapShadow()
|
D | linker.cpp | 309 mmap(reinterpret_cast<void*>(si->base), si->size, PROT_NONE, in soinfo_free()
|