Home
last modified time | relevance | path

Searched refs:mprotect (Results 1 – 25 of 135) sorted by relevance

123456

/external/valgrind/memcheck/tests/
Daddressable.c69 mprotect(m, pgsz, PROT_WRITE); in test4()
73 mprotect(m, pgsz*5, PROT_NONE); in test4()
87 mprotect(m, pgsz*5, PROT_NONE); in test5()
88 mprotect(m, pgsz*5, PROT_READ); in test5()
Dleak-segv-jmp.stderr.exp29 mprotect result 0
45 full mprotect result 0
46 expecting a leak again after full mprotect
61 mprotect result 0
62 expecting heuristic not to crash after full mprotect
/external/compiler-rt/test/asan/TestCases/Linux/
Dleak_check_segv.cc14 mprotect((void*)(((unsigned long)p + 4095) & ~4095), 16 * 1024, PROT_NONE); in main()
15 mprotect((void*)(((unsigned long)data + 4095) & ~4095), 16 * 1024, PROT_NONE); in main()
/external/mesa3d/src/mesa/main/
Dvsnprintf.c75 if (mprotect(e, pgsize, PROT_NONE) == -1) {
99 if (mprotect((caddr_t)(p + n + EXTRABYTES), pgsize,
101 mprotect((caddr_t)(p + n + EXTRABYTES), pgsize,
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
Dsignal_segv_handler.cc27 mprotect(guard, page_size, PROT_READ | PROT_WRITE); in handler()
41 mprotect(guard, page_size, PROT_NONE); in main()
/external/autotest/client/site_tests/security_mprotect/
Dcontrol7 PURPOSE = "Verify mprotect+PROT_EXEC works on noexec filesystem"
17 Checks that mprotect can use PROT_EXEC on noexec filesystems,
/external/bison/m4/
Dmemchr.m412 AC_CHECK_FUNCS_ONCE([mprotect])
30 # Assume that memchr works on platforms that lack mprotect.
61 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
/external/ltp/testcases/kernel/syscalls/signal/
Dsignal06.c98 TEST(mprotect(altstack, sizeof(altstack), PROT_READ)); in tfunc()
102 TEST(mprotect(altstack, sizeof(altstack), PROT_READ|PROT_WRITE)); in tfunc()
/external/linux-kselftest/tools/testing/selftests/powerpc/primitives/
Dload_unaligned_zeropad.c47 if (mprotect(mem_region + page_size, page_size, PROT_NONE)) { in protect_region()
57 if (mprotect(mem_region + page_size, page_size, PROT_READ|PROT_WRITE)) { in unprotect_region()
/external/swiftshader/src/Common/
DMemory.cpp145 mprotect(memory, bytes, PROT_READ | PROT_EXEC); in markExecutable()
155 mprotect(memory, bytes, PROT_READ | PROT_WRITE); in deallocateExecutable()
/external/autotest/client/tests/memory_api/
Dmemory_api.c78 if (-1 == mprotect(mem, HALF_MEM(memsize), PROT_READ)) { in main()
88 if (-1 == mprotect(mem, HALF_MEM(memsize), in main()
/external/ltp/testcases/kernel/syscalls/mprotect/
Dmprotect04.c107 TEST(mprotect(addr, page_sz, PROT_NONE)); in testfunc_protnone()
238 TEST(mprotect(p, copy_sz, PROT_EXEC)); in testfunc_protexec()
/external/vixl/src/
Dcode-buffer-vixl.cc99 int ret = mprotect(buffer_, capacity_, PROT_READ | PROT_EXEC); in SetExecutable()
107 int ret = mprotect(buffer_, capacity_, PROT_READ | PROT_WRITE); in SetWritable()
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
D14-1-buildonly.c24 dummyvar = mprotect; in dummyfcn()
/external/compiler-rt/test/lsan/TestCases/
Dregister_root_region.cc22 assert(0 == mprotect((char *)p + size / 2, size / 2, PROT_NONE)); in main()
/external/ltp/testcases/kernel/syscalls/
DMakefile29 mincore mprotect nftw profil remap_file_pages sbrk
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise05.c40 TEST(mprotect(p, ALLOC_SIZE, PROT_NONE)); in verify_madvise()
/external/libchrome/base/trace_event/
Dheap_profiler_allocation_register_posix.cc45 int result = mprotect(guard_addr, GetGuardSize(), PROT_NONE); in AllocateGuardedVirtualMemory()
/external/compiler-rt/lib/builtins/
Denable_execute_stack.c70 (void) mprotect((void *)startPage, length, PROT_READ | PROT_WRITE | PROT_EXEC); in __enable_execute_stack()
/external/v8/src/base/platform/
Dplatform-aix.cc222 if (mprotect(base, size, prot) == -1) return false; in CommitRegion()
229 return mprotect(base, size, PROT_NONE) != -1; in UncommitRegion()
/external/strace/tests-m32/
Dmmap.test51 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
Dold_mmap.c88 if (mprotect(addr, page_size, PROT_NONE)) in main()
/external/strace/tests-mx32/
Dmmap.test51 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
/external/strace/tests/
Dmmap.test51 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
Dold_mmap.c88 if (mprotect(addr, page_size, PROT_NONE)) in main()

123456