| /OK3568_Linux_fs/kernel/arch/um/kernel/ |
| H A D | tlb.c | 36 } mprotect; member 97 op->u.mprotect.addr, in do_ops() 98 op->u.mprotect.len, in do_ops() 99 op->u.mprotect.prot, in do_ops() 103 (void *) op->u.mprotect.addr, in do_ops() 104 op->u.mprotect.len, in do_ops() 204 (last->u.mprotect.addr + last->u.mprotect.len == addr) && in add_mprotect() 205 (last->u.mprotect.prot == prot)) { in add_mprotect() 206 last->u.mprotect.len += len; in add_mprotect() 218 .u = { .mprotect = { .addr = addr, in add_mprotect()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/primitives/ |
| H A D | load_unaligned_zeropad.c | 43 if (mprotect(mem_region + page_size, page_size, PROT_NONE)) { in protect_region() 53 if (mprotect(mem_region + page_size, page_size, PROT_READ|PROT_WRITE)) { in unprotect_region()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/vm/ |
| H A D | hmm-tests.c | 257 ret = mprotect(buffer->ptr, size, PROT_READ); in TEST_F() 320 ret = mprotect(buffer->ptr, size, PROT_NONE); in TEST_F() 328 ret = mprotect(buffer->ptr, size, PROT_READ); in TEST_F() 437 ret = mprotect(buffer->ptr, size, PROT_WRITE | PROT_READ); in TEST_F() 1024 ret = mprotect(buffer->ptr + 2 * self->page_size, self->page_size, in TEST_F() 1032 ret = mprotect(buffer->ptr + 3 * self->page_size, self->page_size, in TEST_F() 1037 ret = mprotect(buffer->ptr + 3 * self->page_size, self->page_size, in TEST_F() 1042 ret = mprotect(buffer->ptr + 4 * self->page_size, 2 * self->page_size, in TEST_F() 1325 ret = mprotect(buffer->ptr + 2 * self->page_size, self->page_size, in TEST_F() 1333 ret = mprotect(buffer->ptr + 3 * self->page_size, self->page_size, in TEST_F() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/sparc/ |
| H A D | adi.rst | 39 ADI is enabled on a set of pages using mprotect() with PROT_ADI flag. 83 range, enable ADI on the range using mprotect() and set version tags 84 for the entire range. mprotect() ensures range is aligned to page size 226 if (mprotect(shmaddr, BUFFER_SIZE, PROT_READ|PROT_WRITE|PROT_ADI)) { 227 perror("mprotect failed"); 270 if (mprotect(shmaddr, BUFFER_SIZE, PROT_READ|PROT_WRITE)) { 271 perror("mprotect failed");
|
| /OK3568_Linux_fs/kernel/Documentation/ABI/obsolete/ |
| H A D | sysfs-selinux-checkreqprot | 8 to check the protection requested by userspace for mmap/mprotect 20 check the actual protections being applied upon mmap/mprotect calls.
|
| /OK3568_Linux_fs/kernel/Documentation/core-api/ |
| H A D | protection-keys.rst | 77 behavior of a plain mprotect(). For instance if you do this:: 79 mprotect(ptr, size, PROT_NONE); 100 the plain mprotect() permissions are violated.
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/mm/ |
| H A D | pkey_exec_prot.c | 62 if (mprotect(insns, pgsize, PROT_READ | PROT_WRITE)) { in segv_handler() 84 if (mprotect(insns, pgsize, PROT_EXEC)) { in segv_handler()
|
| H A D | tlbie_test.c | 578 mprotect(map1, size, PROT_READ); in mem_snapshot_fn() 598 mprotect(map1, size, PROT_READ|PROT_WRITE); in mem_snapshot_fn()
|
| H A D | pkey_siginfo.c | 83 mprotect(pgstart, pgsize, PROT_EXEC)) in segv_handler()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/ |
| H A D | mmap.c | 121 err = mprotect(map_mmaped, map_sz, PROT_READ); in test_mmap() 138 err = mprotect(map_mmaped, map_sz, PROT_WRITE); in test_mmap() 141 err = mprotect(map_mmaped, map_sz, PROT_EXEC); in test_mmap()
|
| H A D | test_lsm.c | 33 ret = mprotect(GET_PAGE_ADDR(buf, sz), sz, in stack_mprotect()
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-support/ntpsec/ntpsec/ |
| H A D | 0001-ntpd-ntp_sandbox.c-allow-clone3-for-glibc-2.34-in-se.patch | 28 SCMP_SYS(mprotect),
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/arm64/mte/ |
| H A D | check_mmap_options.c | 148 if (mprotect(map_ptr, map_size, prot_flag)) { in check_clear_prot_mte_flag() 171 if (mprotect(map_ptr, map_size, prot_flag)) { in check_clear_prot_mte_flag()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/sys/ |
| H A D | mman.h | 81 extern int mprotect (void *__addr, size_t __len, int __prot) __THROW;
|
| /OK3568_Linux_fs/kernel/arch/x86/um/os-Linux/ |
| H A D | task_size.c | 53 } else if (mprotect(address, UM_KERN_PAGE_SIZE, in page_ok()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/sys/ |
| H A D | mman.h | 81 extern int mprotect (void *__addr, size_t __len, int __prot) __THROW;
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/signal/ |
| H A D | sigreturn_vdso.c | 114 mprotect((void *)low, size, PROT_READ|PROT_WRITE|PROT_EXEC); in test_sigreturn_vdso()
|
| /OK3568_Linux_fs/kernel/arch/um/os-Linux/ |
| H A D | util.c | 21 if (mprotect((void *) address, UM_THREAD_SIZE, in stack_protections()
|
| H A D | process.c | 159 if (mprotect(addr, len, prot) < 0) in os_protect_memory()
|
| /OK3568_Linux_fs/kernel/Documentation/arm64/ |
| H A D | memory-tagging-extension.rst | 38 ``mmap()`` and ``mprotect()``: 52 be cleared by ``mprotect()``. 309 if (mprotect(a, page_sz, PROT_READ | PROT_WRITE | PROT_MTE)) { 310 perror("mprotect() failed");
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/copyloops/ |
| H A D | exc_validate.c | 98 if (mprotect(p + page_size, page_size, PROT_NONE)) { in test_copy_exception()
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-support/chrony/chrony/ |
| H A D | arm_eabi.patch | 55 SCMP_SYS(mprotect),
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/os-support/linux/int10/ |
| H A D | linux.c | 355 if (mprotect((void *) 0, V_RAM, PROT_READ | PROT_WRITE | PROT_EXEC) != 0) in MapCurrentInt10() 369 if (mprotect((void *) HIGH_MEM, HIGH_MEM_SIZE, in MapCurrentInt10()
|
| /OK3568_Linux_fs/kernel/Documentation/vm/ |
| H A D | overcommit-accounting.rst | 75 * We account mprotect changes in commit
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/memfd/ |
| H A D | memfd_test.c | 387 r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE); in mfd_assert_write() 453 r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE); in mfd_fail_write()
|