/qemu/tests/tcg/multiarch/ |
H A D | test-mmap.c | 63 p1 = mmap(NULL, len, PROT_READ, in check_aligned_anonymous_unfixed_mmaps() 65 p2 = mmap(NULL, len, PROT_READ, in check_aligned_anonymous_unfixed_mmaps() 67 p3 = mmap(NULL, len, PROT_READ, in check_aligned_anonymous_unfixed_mmaps() 69 p4 = mmap(NULL, len, PROT_READ, in check_aligned_anonymous_unfixed_mmaps() 71 p5 = mmap(NULL, len, PROT_READ, in check_aligned_anonymous_unfixed_mmaps() 119 p1 = mmap(NULL, len, PROT_READ, in check_large_anonymous_unfixed_mmap() 145 p1 = mmap(NULL, pagesize, PROT_READ, in check_aligned_anonymous_unfixed_colliding_mmaps() 152 p2 = mmap(NULL, pagesize, PROT_READ, in check_aligned_anonymous_unfixed_colliding_mmaps() 162 p3 = mmap(NULL, nlen, PROT_READ, in check_aligned_anonymous_unfixed_colliding_mmaps() 194 addr = mmap(NULL, pagesize * 40, PROT_READ | PROT_WRITE, in check_aligned_anonymous_fixed_mmaps() [all …]
|
H A D | vma-pthread.c | 133 prot = rand_r(&seed) & (PROT_READ | PROT_WRITE | PROT_EXEC); in thread_mutate() 137 prot |= PROT_READ; in thread_mutate() 141 prot |= PROT_WRITE | PROT_READ; in thread_mutate() 172 PROT_READ | PROT_WRITE | PROT_EXEC, in main()
|
H A D | prot-none.c | 22 p = mmap(NULL, pagesize * 2, PROT_READ | PROT_WRITE, in main() 33 err = mprotect(p, pagesize * 2, PROT_READ); in main()
|
H A D | noexec.c.inc | 82 PROT_READ | PROT_WRITE | PROT_EXEC) < 0) { 122 PROT_READ | PROT_WRITE | PROT_EXEC,
|
H A D | munmap-pthread.c | 19 p = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE | PROT_EXEC, in thread_mmap_munmap()
|
/qemu/tests/tcg/multiarch/linux/ |
H A D | linux-madvise.c | 12 page = mmap(NULL, pagesize, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_anonymous() 16 ret = mprotect(page, pagesize, PROT_READ | PROT_WRITE); in test_anonymous() 47 page = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE, fd, 0); in test_file() 51 ret = mprotect(page, pagesize, PROT_READ | PROT_WRITE); in test_file()
|
/qemu/tests/tcg/i386/ |
H A D | test-flags.c | 14 mprotect(addr, 4096, PROT_READ|PROT_WRITE); in sigsegv() 23 addr = mmap (NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0); in main() 25 mprotect(addr, 4096, PROT_READ); in main()
|
/qemu/tcg/ |
H A D | region.c | 44 #define PROT_READ 1 macro 102 return PROT_READ | PROT_EXEC | PROT_BTI; in host_prot_read_exec() 105 return PROT_READ | PROT_EXEC; in host_prot_read_exec() 529 return PROT_READ | PROT_WRITE; in alloc_code_gen_buffer() 552 return PROT_READ | PROT_WRITE | PROT_EXEC; in alloc_code_gen_buffer() 598 return PROT_READ | PROT_WRITE; in alloc_code_gen_buffer_splitwx_memfd() 634 if (!alloc_code_gen_buffer_anon(size, PROT_READ | PROT_WRITE, in alloc_code_gen_buffer_splitwx_vmremap() 667 return PROT_READ | PROT_WRITE; in alloc_code_gen_buffer_splitwx_vmremap() 815 need_prot = PROT_READ | PROT_WRITE; in tcg_region_init() 828 if (need_prot == (PROT_READ | PROT_WRITE | PROT_EXEC)) { in tcg_region_init() [all …]
|
/qemu/tests/tcg/aarch64/ |
H A D | mte-8.c | 68 a = mmap(0, page_sz, PROT_READ | PROT_WRITE, in main() 81 if (mprotect(a, page_sz, PROT_READ | PROT_WRITE | PROT_MTE)) { in main()
|
H A D | mte-6.c | 19 if (mprotect(brk, 16, PROT_READ | PROT_WRITE | PROT_MTE)) { in main()
|
H A D | mte.h | 54 void *p = mmap(NULL, size, PROT_READ | PROT_WRITE | PROT_MTE, in alloc_mte_mem()
|
H A D | bti-2.c | 90 PROT_EXEC | PROT_READ | PROT_WRITE | PROT_BTI, in main()
|
/qemu/tests/tcg/s390x/ |
H A D | signals-s390x.c | 80 page = mmap(expected.addr, 4096, PROT_READ | PROT_WRITE, in handle_signal() 88 err = mprotect(expected.addr, 4096, PROT_READ | PROT_WRITE); in handle_signal() 118 prot = exception == exception_translation ? PROT_NONE : PROT_READ; in check_sigsegv()
|
H A D | mvc.c | 74 if (mprotect(src + 4096, 4096, PROT_READ | PROT_WRITE) || in main() 75 mprotect(dst + 4096, 4096, PROT_READ | PROT_WRITE)) { in main()
|
H A D | precise-smc-user.c | 22 PROT_READ | PROT_WRITE | PROT_EXEC); in main()
|
H A D | branch-relative-long.c | 49 buf = mmap(NULL, length, PROT_READ | PROT_WRITE | PROT_EXEC, in main()
|
/qemu/ebpf/ |
H A D | ebpf_rss.c | 53 PROT_READ | PROT_WRITE, MAP_SHARED, in ebpf_rss_mmap() 61 PROT_READ | PROT_WRITE, MAP_SHARED, in ebpf_rss_mmap() 69 PROT_READ | PROT_WRITE, MAP_SHARED, in ebpf_rss_mmap()
|
/qemu/bsd-user/ |
H A D | mmap.c | 73 prot & PROT_READ ? 'r' : '-', in target_mprotect() 82 prot &= PROT_READ | PROT_WRITE | PROT_EXEC; in target_mprotect() 409 prot & PROT_READ ? 'r' : '-', in target_mmap() 448 if ((fd != -1) || ((prot & (PROT_READ | PROT_WRITE)) != in target_mmap() 449 (PROT_READ | PROT_WRITE))) { in target_mmap()
|
H A D | elfload.c | 196 PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in setup_arg_pages() 221 if (target_mmap(start, end - start, PROT_READ | PROT_WRITE | PROT_EXEC, in set_brk() 255 PROT_READ | PROT_WRITE | PROT_EXEC, in padzero() 554 elf_prot |= PROT_READ; in load_elf_sections()
|
/qemu/bsd-user/x86_64/ |
H A D | target_arch_cpu.h | 66 PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in target_cpu_init() 92 PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in target_cpu_init()
|
/qemu/bsd-user/i386/ |
H A D | target_arch_cpu.h | 57 PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in target_cpu_init() 83 PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in target_cpu_init()
|
/qemu/linux-headers/asm-generic/ |
H A D | mman-common.h | 10 #define PROT_READ 0x1 /* page can be read */ macro
|
/qemu/linux-headers/asm-mips/ |
H A D | mman.h | 19 #define PROT_READ 0x01 /* page can be read */ macro
|
/qemu/linux-user/ |
H A D | flatload.c | 279 textpos = target_mmap(0, text_len, PROT_READ|PROT_EXEC, in load_flat_file() 287 PROT_READ|PROT_WRITE|PROT_EXEC, in load_flat_file() 313 PROT_READ | PROT_EXEC | PROT_WRITE, in load_flat_file()
|
/qemu/hw/net/ |
H A D | xen_nic.c | 190 PROT_READ, NULL); in net_tx_packets() 389 PROT_READ | PROT_WRITE, in xen_netdev_connect() 398 PROT_READ | PROT_WRITE, in xen_netdev_connect()
|