Home
last modified time | relevance | path

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

/mm/
Dmprotect.c453 unsigned long prot, int pkey) in do_mprotect_pkey() argument
489 if ((pkey != -1) && !mm_pkey_is_allocated(current->mm, pkey)) in do_mprotect_pkey()
536 new_vma_pkey = arch_override_mprotect_pkey(vma, prot, pkey); in do_mprotect_pkey()
584 unsigned long, prot, int, pkey) in SYSCALL_DEFINE4()
586 return do_mprotect_pkey(start, len, prot, pkey); in SYSCALL_DEFINE4()
591 int pkey; in SYSCALL_DEFINE2() local
602 pkey = mm_pkey_alloc(current->mm); in SYSCALL_DEFINE2()
605 if (pkey == -1) in SYSCALL_DEFINE2()
608 ret = arch_set_user_pkey_access(current, pkey, init_val); in SYSCALL_DEFINE2()
610 mm_pkey_free(current->mm, pkey); in SYSCALL_DEFINE2()
[all …]
Dmmap.c1407 int pkey = 0; in do_mmap() local
1459 pkey = execute_only_pkey(mm); in do_mmap()
1460 if (pkey < 0) in do_mmap()
1461 pkey = 0; in do_mmap()
1468 vm_flags |= calc_vm_prot_bits(prot, pkey) | calc_vm_flag_bits(flags) | in do_mmap()