Home
last modified time | relevance | path

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

12

/Linux-v5.4/arch/um/kernel/
Dtlb.c37 } 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/
Dload_unaligned_zeropad.c43 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/
Dadi.rst39 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/
Dprotection-keys.rst76 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/
Dtask_size.c53 } else if (mprotect(address, UM_KERN_PAGE_SIZE, in page_ok()
/Linux-v5.4/arch/um/os-Linux/
Dutil.c21 if (mprotect((void *) address, UM_THREAD_SIZE, in stack_protections()
Dprocess.c159 if (mprotect(addr, len, prot) < 0) in os_protect_memory()
/Linux-v5.4/tools/testing/selftests/powerpc/copyloops/
Dexc_validate.c98 if (mprotect(p + page_size, page_size, PROT_NONE)) { in test_copy_exception()
/Linux-v5.4/tools/testing/selftests/powerpc/mm/
Dtlbie_test.c578 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/
DMakefile29 mlock.o mmap.o mmu_gather.o mprotect.o mremap.o \
Dmprotect.c575 SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len, in SYSCALL_DEFINE3() argument
/Linux-v5.4/Documentation/vm/
Dovercommit-accounting.rst75 * We account mprotect changes in commit
/Linux-v5.4/security/selinux/
DKconfig79 mmap and mprotect calls. If this option is set to 0 (zero),
/Linux-v5.4/kernel/
Dsys_ni.c275 COND_SYSCALL(mprotect);
/Linux-v5.4/tools/testing/selftests/memfd/
Dmemfd_test.c353 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/
Dprotection_keys.c1378 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/
Dtagged-address-abi.rst47 management (e.g. ``mmap()``, ``mprotect()``, ``madvise()``). The use
/Linux-v5.4/arch/mips/kernel/syscalls/
Dsyscall_n32.tbl20 10 n32 mprotect sys_mprotect
Dsyscall_n64.tbl20 10 n64 mprotect sys_mprotect
/Linux-v5.4/arch/ia64/kernel/syscalls/
Dsyscall.tbl143 131 common mprotect sys_mprotect
/Linux-v5.4/arch/xtensa/kernel/syscalls/
Dsyscall.tbl94 82 common mprotect sys_mprotect
/Linux-v5.4/tools/perf/arch/x86/entry/syscalls/
Dsyscall_64.tbl21 10 common mprotect __x64_sys_mprotect
/Linux-v5.4/arch/x86/entry/syscalls/
Dsyscall_64.tbl21 10 common mprotect __x64_sys_mprotect
/Linux-v5.4/arch/m68k/kernel/syscalls/
Dsyscall.tbl135 125 common mprotect sys_mprotect
/Linux-v5.4/arch/sh/kernel/syscalls/
Dsyscall.tbl135 125 common mprotect sys_mprotect

12