Home
last modified time | relevance | path

Searched refs:pkey (Results 1 – 2 of 2) sorted by relevance

/mm/
Dmprotect.c487 unsigned long prot, int pkey) in do_mprotect_pkey() argument
523 if ((pkey != -1) && !mm_pkey_is_allocated(current->mm, pkey)) in do_mprotect_pkey()
570 new_vma_pkey = arch_override_mprotect_pkey(vma, prot, pkey); in do_mprotect_pkey()
618 unsigned long, prot, int, pkey) in SYSCALL_DEFINE4()
620 return do_mprotect_pkey(start, len, prot, pkey); in SYSCALL_DEFINE4()
625 int pkey; in SYSCALL_DEFINE2() local
636 pkey = mm_pkey_alloc(current->mm); in SYSCALL_DEFINE2()
639 if (pkey == -1) in SYSCALL_DEFINE2()
642 ret = arch_set_user_pkey_access(current, pkey, init_val); in SYSCALL_DEFINE2()
644 mm_pkey_free(current->mm, pkey); in SYSCALL_DEFINE2()
[all …]
Dmmap.c1405 int pkey = 0; in do_mmap() local
1457 pkey = execute_only_pkey(mm); in do_mmap()
1458 if (pkey < 0) in do_mmap()
1459 pkey = 0; in do_mmap()
1466 vm_flags |= calc_vm_prot_bits(prot, pkey) | calc_vm_flag_bits(flags) | in do_mmap()