Searched refs:mprotect (Results 26 - 36 of 36) sorted by relevance
12
/linux-master/mm/ |
H A D | Makefile | 37 mlock.o mmap.o mmu_gather.o mprotect.o mremap.o \
|
/linux-master/tools/testing/selftests/arm64/mte/ |
H A D | mte_common_util.c | 157 if (mprotect(ptr, entire_size, prot_flag | PROT_MTE)) { 159 ksft_print_msg("FAIL: mprotect PROT_MTE property\n");
|
/linux-master/tools/testing/selftests/mm/ |
H A D | gup_longterm.c | 131 ret = mprotect(mem, size, PROT_READ); 133 ksft_test_result_fail("mprotect() failed\n");
|
H A D | protection_keys.c | 18 * 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 D | ksm_functional_tests.c | 192 if (mprotect(map, size, prot)) { 193 ksft_print_msg("mprotect() failed\n");
|
H A D | ksm_tests.c | 209 if (mprotect(map_ptr, map_size, prot)) { 210 perror("mprotect");
|
/linux-master/kernel/ |
H A D | sys_ni.c | 181 COND_SYSCALL(mprotect); variable
|
/linux-master/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 470 * 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 D | main.c | 666 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 D | encl.c | 688 .mprotect = sgx_vma_mprotect,
|
/linux-master/include/linux/ |
H A D | mm.h | 272 /* 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 347 milliseconds
12