Home
last modified time | relevance | path

Searched refs:PROT_EXEC (Results 1 – 25 of 114) sorted by relevance

12345

/external/ltp/testcases/kernel/syscalls/pkeys/
Dpkey01.c101 {PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE, -1},
102 {PROT_EXEC, MAP_ANONYMOUS | MAP_SHARED, -1},
103 {PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1},
104 {PROT_EXEC, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1},
105 {PROT_EXEC, MAP_PRIVATE, 0},
106 {PROT_EXEC, MAP_SHARED, 0},
115 {PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE, -1},
116 {PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANONYMOUS | MAP_SHARED, -1},
117 {PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1},
118 {PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1},
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D5-1.c44 {.flags = MAP_SHARED,.prot = PROT_EXEC},
46 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_EXEC},
47 {.flags = MAP_SHARED,.prot = PROT_EXEC | PROT_WRITE},
48 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE | PROT_EXEC},
53 {.flags = MAP_PRIVATE,.prot = PROT_EXEC},
55 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_EXEC},
56 {.flags = MAP_PRIVATE,.prot = PROT_EXEC | PROT_WRITE},
57 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE | PROT_EXEC},
73 if (t->prot & PROT_EXEC) in print_error()
/external/llvm-project/clang/test/Analysis/
Dmmap-writeexec.c6 #define PROT_EXEC 0x04 macro
9 #define PROT_EXEC 0x01 macro
23 void *a = mmap(NULL, 16, PROT_READ | PROT_EXEC, MAP_PRIVATE | MAP_ANON, -1, 0); // no-warning in f1()
25 …void *c = mmap(NULL, 32, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANON, -1, 0); // ex… in f1()
35 int prot = PROT_WRITE | PROT_EXEC; in f2()
42 …int m = mprotect(p, 1024, PROT_WRITE | PROT_EXEC); // expected-warning{{Both PROT_WRITE and PROT_E… in f3()
/external/compiler-rt/lib/profile/
DWindowsMMap.c34 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) in mmap()
44 if (prot & PROT_EXEC) in mmap()
48 } else if (prot & PROT_EXEC) { in mmap()
51 else if (prot & PROT_EXEC) in mmap()
71 if (prot & PROT_EXEC) in mmap()
/external/llvm-project/compiler-rt/lib/profile/
DWindowsMMap.c30 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) in mmap()
40 if (prot & PROT_EXEC) in mmap()
44 } else if (prot & PROT_EXEC) { in mmap()
47 else if (prot & PROT_EXEC) in mmap()
67 if (prot & PROT_EXEC) in mmap()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/
Dmmap_write_exec.cpp14 char *p = (char *)mmap(0, 1024, PROT_READ | PROT_WRITE | PROT_EXEC, in main()
22 (void)mprotect(q, 64, PROT_WRITE | PROT_EXEC); in main()
31 (void)mprotect(q, 64, PROT_READ | PROT_EXEC); in main()
/external/strace/tests/
Dold_mmap.c65 PROT_READ|PROT_EXEC, /* prot */ in main()
84 args1_c[0], args1_c[1], PROT_READ|PROT_EXEC, MAP_FILE, MAP_FIXED, in main()
90 args1_c[0], args1_c[1], PROT_READ|PROT_EXEC, MAP_FILE, MAP_FIXED, in main()
/external/strace/tests-m32/
Dold_mmap.c65 PROT_READ|PROT_EXEC, /* prot */ in main()
84 args1_c[0], args1_c[1], PROT_READ|PROT_EXEC, MAP_FILE, MAP_FIXED, in main()
90 args1_c[0], args1_c[1], PROT_READ|PROT_EXEC, MAP_FILE, MAP_FIXED, in main()
/external/strace/tests-mx32/
Dold_mmap.c65 PROT_READ|PROT_EXEC, /* prot */ in main()
84 args1_c[0], args1_c[1], PROT_READ|PROT_EXEC, MAP_FILE, MAP_FIXED, in main()
90 args1_c[0], args1_c[1], PROT_READ|PROT_EXEC, MAP_FILE, MAP_FIXED, in main()
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/
D2-3-buildonly.c19 #ifndef PROT_EXEC
20 #error PROT_EXEC not defined
/external/llvm-project/compiler-rt/test/builtins/Unit/
Dclear_cache_test.c55 PROT_EXEC), in main()
66 if (mprotect(execution_buffer, kSize, PROT_READ | PROT_EXEC) == -1) in main()
70 PROT_READ | PROT_WRITE | PROT_EXEC, in main()
/external/strace/xlat/
Dmmap_prot.h26 #if defined(PROT_EXEC) || (defined(HAVE_DECL_PROT_EXEC) && HAVE_DECL_PROT_EXEC)
27 XLAT(PROT_EXEC),
/external/crosvm/seccomp/aarch64/
Dcommon_device.policy23 mmap: arg2 in ~PROT_EXEC
24 mprotect: arg2 in ~PROT_EXEC
Dtpm_device.policy23 mmap: arg2 in ~PROT_EXEC
24 mprotect: arg2 in ~PROT_EXEC
/external/crosvm/seccomp/arm/
Dcommon_device.policy27 mmap2: arg2 in ~PROT_EXEC
28 mprotect: arg2 in ~PROT_EXEC
Dtpm_device.policy26 mmap2: arg2 in ~PROT_EXEC
27 mprotect: arg2 in ~PROT_EXEC
/external/crosvm/seccomp/x86_64/
Dcommon_device.policy25 mmap: arg2 in ~PROT_EXEC
26 mprotect: arg2 in ~PROT_EXEC
Dtpm_device.policy23 mmap: arg2 in ~PROT_EXEC
24 mprotect: arg2 in ~PROT_EXEC
/external/pcre/dist2/src/sljit/
DsljitWXExecAllocator.c64 #define SLJIT_PROT_WX PROT_MPROTECT(PROT_EXEC)
98 if (SLJIT_LIKELY(!mprotect(ptr, size, PROT_EXEC))) in generic_se_protected()
165 int prot = PROT_READ | (enable_exec ? PROT_EXEC : PROT_WRITE); in sljit_update_wx_flags()
/external/python/cffi/c/
Dmalloc_closure.h129 int prot = PROT_READ | PROT_WRITE | PROT_EXEC; in more_core()
131 prot &= ~PROT_EXEC; in more_core()
/external/adhd/sound_card_init/seccomp/
Dsound_card_init-seccomp-amd64.policy44 mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
45 mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
/external/llvm/lib/Support/Unix/
DMemory.inc52 return PROT_READ | PROT_EXEC;
55 return PROT_READ | PROT_WRITE | PROT_EXEC;
65 return PROT_READ | PROT_EXEC;
67 return PROT_EXEC;
209 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_EXEC,
212 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_WRITE|PROT_EXEC,
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/
DMemory.inc52 return PROT_READ | PROT_EXEC;
55 return PROT_READ | PROT_WRITE | PROT_EXEC;
65 return PROT_READ | PROT_EXEC;
67 return PROT_EXEC;
196 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_EXEC,
199 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_WRITE|PROT_EXEC,
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/
DMemory.inc54 return PROT_READ | PROT_EXEC;
57 return PROT_READ | PROT_WRITE | PROT_EXEC;
66 return PROT_READ | PROT_EXEC;
68 return PROT_EXEC;
110 Protect |= PROT_MPROTECT(PROT_READ | PROT_WRITE | PROT_EXEC);
/external/pdfium/third_party/base/allocator/partition_allocator/
Dpage_allocator_internals_posix.h71 return PROT_READ | PROT_EXEC; in GetAccessFlags()
73 return PROT_READ | PROT_WRITE | PROT_EXEC; in GetAccessFlags()

12345