Home
last modified time | relevance | path

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

123456

/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/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/ltp/testcases/kernel/syscalls/mprotect/
Dmprotect04.c106 TEST(mprotect(addr, page_sz, PROT_NONE)); in testfunc_protnone()
235 TEST(mprotect(page_to_copy, page_sz, PROT_READ | PROT_EXEC)); in get_func()
285 TEST(mprotect(p, page_sz, PROT_EXEC)); in testfunc_protexec()
Dmprotect03.c95 TEST(mprotect(addr, strlen(buf), PROT_READ)); in main()
/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/ltp/testcases/kernel/syscalls/signal/
Dsignal06.c102 TEST(mprotect(altstack, sizeof(altstack), PROT_READ)); in tfunc()
107 TEST(mprotect(altstack, sizeof(altstack), PROT_READ | PROT_WRITE)); in tfunc()
/external/adhd/seccomp/
Dcras-seccomp-arm64.policy20 # Don't allow mmap or mprotect with both PROT_WRITE and PROT_EXEC
22 mprotect: arg2 in 0xfffffffb || arg2 in 0xfffffffd
/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/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/perfetto/src/base/
Dpaged_memory.cc61 int res = mprotect(ptr, kGuardSize, PROT_NONE); in Allocate()
62 res |= mprotect(usable_region + size, kGuardSize, PROT_NONE); in Allocate()
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
D14-1-buildonly.c24 dummyvar = mprotect; in dummyfcn()
/external/swiftshader/src/Reactor/
DExecutableMemory.cpp266 mprotect(memory, bytes, PROT_READ | PROT_EXEC); in markExecutable()
284 mprotect(memory, bytes, PROT_READ | PROT_WRITE); in deallocateExecutable()
/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/madvise/
Dmadvise05.c40 TEST(mprotect(p, ALLOC_SIZE, PROT_NONE)); in verify_madvise()
/external/pdfium/third_party/base/allocator/partition_allocator/
Dpage_allocator.cc200 int ret = mprotect(address, length, PROT_NONE); in SetSystemPagesInaccessible()
211 return !mprotect(address, length, PROT_READ | PROT_WRITE); in SetSystemPagesAccessible()
/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/strace/tests-mx32/
Dmmap.test57 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
/external/strace/tests-m32/
Dmmap.test57 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
/external/ltp/testcases/kernel/mem/thp/
Dthp03.c57 if (mprotect(p, unaligned_size, PROT_NONE) == -1) in thp_test()
/external/strace/tests/
Dmmap.test57 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
/external/ltp/testcases/kernel/syscalls/
DMakefile29 mincore mprotect nftw profil remap_file_pages sbrk
/external/compiler-rt/test/builtins/Unit/
Dclear_cache_test.c68 if (mprotect(start, end-start, PROT_READ|PROT_WRITE|PROT_EXEC) != 0) in main()
/external/libchrome/base/memory/
Dprotected_memory_posix.cc33 return mprotect(reinterpret_cast<void*>(page_start), in SetMemory()
/external/syzkaller/sys/netbsd/
Dmm.txt9 mprotect(addr vma, len len[addr], prot flags[mmap_prot])
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_posix_test.cc67 mprotect((void *)(mem + page_size), page_size, PROT_NONE); in TEST()

123456