Searched refs:mprotect (Results 26 - 36 of 36) sorted by relevance

12

/linux-master/mm/
H A DMakefile37 mlock.o mmap.o mmu_gather.o mprotect.o mremap.o \
/linux-master/tools/testing/selftests/arm64/mte/
H A Dmte_common_util.c157 if (mprotect(ptr, entire_size, prot_flag | PROT_MTE)) {
159 ksft_print_msg("FAIL: mprotect PROT_MTE property\n");
/linux-master/kernel/
H A Dsys_ni.c181 COND_SYSCALL(mprotect); variable
/linux-master/tools/testing/selftests/mm/
H A Dgup_longterm.c131 ret = mprotect(mem, size, PROT_READ);
133 ksft_test_result_fail("mprotect() failed\n");
H A Dprotection_keys.c18 * do a plain mprotect() to a mprotect_pkey() area and make sure the pkey sticks
543 * I had a bug where pkey bits could be set by mprotect() but
974 * This is a bit of a hack. But mprotect() requires
1357 * This is a bit of a hack. But mprotect() requires
1511 /* Use a *normal* mprotect(), not mprotect_pkey(): */
1512 ret = mprotect(p1, PAGE_SIZE, PROT_EXEC);
1516 * Reset the shadow, assuming that the above mprotect()
1536 ret = mprotect(p1, PAGE_SIZE, PROT_NONE);
1539 ret = mprotect(p1, PAGE_SIZE, PROT_READ|PROT_EXEC);
H A Dksm_functional_tests.c192 if (mprotect(map, size, prot)) {
193 ksft_print_msg("mprotect() failed\n");
H A Dksm_tests.c209 if (mprotect(map_ptr, map_size, prot)) {
210 perror("mprotect");
/linux-master/tools/testing/selftests/memfd/
H A Dmemfd_test.c470 * mprotect(PROT_WRITE) allows writing */
482 r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE);
484 printf("mprotect() failed: %m\n");
539 /* Verify PROT_READ with MAP_SHARED with a following mprotect is not
548 r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE);
550 printf("mmap()+mprotect() didn't fail as expected\n");
/linux-master/tools/testing/selftests/sgx/
H A Dmain.c666 ret = mprotect((void *)data_start, PAGE_SIZE, PROT_READ);
668 perror("mprotect");
693 ret = mprotect((void *)data_start, PAGE_SIZE, PROT_READ | PROT_WRITE);
695 perror("mprotect");
/linux-master/arch/x86/kernel/cpu/sgx/
H A Dencl.c688 .mprotect = sgx_vma_mprotect,
/linux-master/include/linux/
H A Dmm.h272 /* mprotect() hardcodes VM_MAYREAD >> 4 == VM_READ, and so for r/w/x bits. */
273 #define VM_MAYREAD 0x00000010 /* limits for mprotect() etc */
583 * Called by mprotect() to make driver-specific permission
584 * checks before mprotect() is finalised. The VMA must not
585 * be modified. Returns 0 if mprotect() can proceed.
587 int (*mprotect)(struct vm_area_struct *vma, unsigned long start, member in struct:vm_operations_struct
1635 * ptrace does not apply. Note that there is no mprotect() to upgrade
4213 * MAP_SHARED and read-only, take care to not allow mprotect to

Completed in 296 milliseconds

12