/Linux-v5.4/arch/um/kernel/ |
D | tlb.c | 37 } mprotect; member 98 op->u.mprotect.addr, in do_ops() 99 op->u.mprotect.len, in do_ops() 100 op->u.mprotect.prot, in do_ops() 104 (void *) op->u.mprotect.addr, in do_ops() 105 op->u.mprotect.len, in do_ops() 199 (last->u.mprotect.addr + last->u.mprotect.len == addr) && in add_mprotect() 200 (last->u.mprotect.prot == prot)) { in add_mprotect() 201 last->u.mprotect.len += len; in add_mprotect() 213 .u = { .mprotect = { .addr = addr, in add_mprotect()
|
/Linux-v5.4/tools/testing/selftests/powerpc/primitives/ |
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()
|
/Linux-v5.4/Documentation/sparc/ |
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");
|
/Linux-v5.4/Documentation/core-api/ |
D | protection-keys.rst | 76 behavior of a plain mprotect(). For instance if you do this:: 78 mprotect(ptr, size, PROT_NONE); 99 the plain mprotect() permissions are violated.
|
/Linux-v5.4/arch/x86/um/os-Linux/ |
D | task_size.c | 53 } else if (mprotect(address, UM_KERN_PAGE_SIZE, in page_ok()
|
/Linux-v5.4/arch/um/os-Linux/ |
D | util.c | 21 if (mprotect((void *) address, UM_THREAD_SIZE, in stack_protections()
|
D | process.c | 159 if (mprotect(addr, len, prot) < 0) in os_protect_memory()
|
/Linux-v5.4/tools/testing/selftests/powerpc/copyloops/ |
D | exc_validate.c | 98 if (mprotect(p + page_size, page_size, PROT_NONE)) { in test_copy_exception()
|
/Linux-v5.4/tools/testing/selftests/powerpc/mm/ |
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()
|
/Linux-v5.4/mm/ |
D | Makefile | 29 mlock.o mmap.o mmu_gather.o mprotect.o mremap.o \
|
D | mprotect.c | 575 SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len, in SYSCALL_DEFINE3() argument
|
/Linux-v5.4/Documentation/vm/ |
D | overcommit-accounting.rst | 75 * We account mprotect changes in commit
|
/Linux-v5.4/security/selinux/ |
D | Kconfig | 79 mmap and mprotect calls. If this option is set to 0 (zero),
|
/Linux-v5.4/kernel/ |
D | sys_ni.c | 275 COND_SYSCALL(mprotect);
|
/Linux-v5.4/tools/testing/selftests/memfd/ |
D | memfd_test.c | 353 r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE); in mfd_assert_write() 419 r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE); in mfd_fail_write()
|
/Linux-v5.4/tools/testing/selftests/x86/ |
D | protection_keys.c | 1378 ret = mprotect(p1, PAGE_SIZE, PROT_EXEC); in test_implicit_mprotect_exec_only_memory() 1397 ret = mprotect(p1, PAGE_SIZE, PROT_NONE); in test_implicit_mprotect_exec_only_memory() 1400 ret = mprotect(p1, PAGE_SIZE, PROT_READ|PROT_EXEC); in test_implicit_mprotect_exec_only_memory()
|
/Linux-v5.4/Documentation/arm64/ |
D | tagged-address-abi.rst | 47 management (e.g. ``mmap()``, ``mprotect()``, ``madvise()``). The use
|
/Linux-v5.4/arch/mips/kernel/syscalls/ |
D | syscall_n32.tbl | 20 10 n32 mprotect sys_mprotect
|
D | syscall_n64.tbl | 20 10 n64 mprotect sys_mprotect
|
/Linux-v5.4/arch/ia64/kernel/syscalls/ |
D | syscall.tbl | 143 131 common mprotect sys_mprotect
|
/Linux-v5.4/arch/xtensa/kernel/syscalls/ |
D | syscall.tbl | 94 82 common mprotect sys_mprotect
|
/Linux-v5.4/tools/perf/arch/x86/entry/syscalls/ |
D | syscall_64.tbl | 21 10 common mprotect __x64_sys_mprotect
|
/Linux-v5.4/arch/x86/entry/syscalls/ |
D | syscall_64.tbl | 21 10 common mprotect __x64_sys_mprotect
|
/Linux-v5.4/arch/m68k/kernel/syscalls/ |
D | syscall.tbl | 135 125 common mprotect sys_mprotect
|
/Linux-v5.4/arch/sh/kernel/syscalls/ |
D | syscall.tbl | 135 125 common mprotect sys_mprotect
|