/linux/arch/powerpc/include/asm/ |
H A D | pkeys.h | 33 static inline u64 pkey_to_vmflag_bits(u16 pkey) in pkey_to_vmflag_bits() 50 #define pkey_alloc_mask(pkey) (0x1 << pkey) argument 54 #define __mm_pkey_allocated(mm, pkey) { \ argument 58 #define __mm_pkey_free(mm, pkey) { \ argument 62 #define __mm_pkey_is_allocated(mm, pkey) \ argument 65 #define __mm_pkey_is_reserved(pkey) (reserved_allocation_mask & \ argument 68 static inline bool mm_pkey_is_allocated(struct mm_struct *mm, int pkey) in mm_pkey_is_allocated() 110 static inline int mm_pkey_free(struct mm_struct *mm, int pkey) in mm_pkey_free() 131 int prot, int pkey) in arch_override_mprotect_pkey() 148 static inline int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, in arch_set_user_pkey_access()
|
/linux/tools/testing/selftests/mm/ |
H A D | protection_keys.c | 178 static u32 hw_pkey_get(int pkey, unsigned long flags) in hw_pkey_get() argument 189 static int hw_pkey_set(int pkey, unsigne argument 210 pkey_disable_set(int pkey,int flags) pkey_disable_set() argument 248 pkey_disable_clear(int pkey,int flags) pkey_disable_clear() argument 274 pkey_write_allow(int pkey) pkey_write_allow() argument 278 pkey_write_deny(int pkey) pkey_write_deny() argument 282 pkey_access_allow(int pkey) pkey_access_allow() argument 286 pkey_access_deny(int pkey) pkey_access_deny() argument 464 sys_mprotect_pkey(void * ptr,size_t size,unsigned long orig_prot,unsigned long pkey) sys_mprotect_pkey() argument 537 sys_pkey_free(unsigned long pkey) sys_pkey_free() argument 590 mprotect_pkey(void * ptr,size_t size,unsigned long orig_prot,unsigned long pkey) mprotect_pkey() argument 698 malloc_pkey_with_mprotect(long size,int prot,u16 pkey) malloc_pkey_with_mprotect() argument 718 malloc_pkey_anon_huge(long size,int prot,u16 pkey) malloc_pkey_anon_huge() argument 799 malloc_pkey_hugetlb(long size,int prot,u16 pkey) malloc_pkey_hugetlb() argument 820 malloc_pkey_mmap_dax(long size,int prot,u16 pkey) malloc_pkey_mmap_dax() argument 855 malloc_pkey(long size,int prot,u16 pkey) malloc_pkey() argument 887 expected_pkey_fault(int pkey) expected_pkey_fault() argument 967 test_pkey_alloc_free_attach_pkey0(int * ptr,u16 pkey) test_pkey_alloc_free_attach_pkey0() argument 1019 test_read_of_write_disabled_region(int * ptr,u16 pkey) test_read_of_write_disabled_region() argument 1029 test_read_of_access_disabled_region(int * ptr,u16 pkey) test_read_of_access_disabled_region() argument 1042 test_read_of_access_disabled_region_with_page_already_mapped(int * ptr,u16 pkey) test_read_of_access_disabled_region_with_page_already_mapped() argument 1059 test_write_of_write_disabled_region_with_page_already_mapped(int * ptr,u16 pkey) test_write_of_write_disabled_region_with_page_already_mapped() argument 1069 test_write_of_write_disabled_region(int * ptr,u16 pkey) test_write_of_write_disabled_region() argument 1076 test_write_of_access_disabled_region(int * ptr,u16 pkey) test_write_of_access_disabled_region() argument 1085 test_write_of_access_disabled_region_with_page_already_mapped(int * ptr,u16 pkey) test_write_of_access_disabled_region_with_page_already_mapped() argument 1095 test_kernel_write_of_access_disabled_region(int * ptr,u16 pkey) test_kernel_write_of_access_disabled_region() argument 1107 test_kernel_write_of_write_disabled_region(int * ptr,u16 pkey) test_kernel_write_of_write_disabled_region() argument 1120 test_kernel_gup_of_access_disabled_region(int * ptr,u16 pkey) test_kernel_gup_of_access_disabled_region() argument 1142 test_kernel_gup_write_to_write_disabled_region(int * ptr,u16 pkey) test_kernel_gup_write_to_write_disabled_region() argument 1160 test_pkey_syscalls_on_non_allocated_pkey(int * ptr,u16 pkey) test_pkey_syscalls_on_non_allocated_pkey() argument 1183 test_pkey_syscalls_bad_args(int * ptr,u16 pkey) test_pkey_syscalls_bad_args() argument 1209 test_pkey_alloc_exhaust(int * ptr,u16 pkey) test_pkey_alloc_exhaust() argument 1315 test_pkey_init_state(int * ptr,u16 pkey) test_pkey_init_state() argument 1353 test_mprotect_with_pkey_0(int * ptr,u16 pkey) test_mprotect_with_pkey_0() argument 1377 test_ptrace_of_child(int * ptr,u16 pkey) test_ptrace_of_child() argument 1474 test_executing_on_unreadable_memory(int * ptr,u16 pkey) test_executing_on_unreadable_memory() argument 1506 test_implicit_mprotect_exec_only_memory(int * ptr,u16 pkey) test_implicit_mprotect_exec_only_memory() argument 1555 test_ptrace_modifies_pkru(int * ptr,u16 pkey) test_ptrace_modifies_pkru() argument 1678 test_ptrace_modifies_pkru(int * ptr,u16 pkey) test_ptrace_modifies_pkru() argument 1755 test_mprotect_pkey_on_unsupported_cpu(int * ptr,u16 pkey) test_mprotect_pkey_on_unsupported_cpu() argument 1801 int pkey; run_tests_once() local [all...] |
H A D | pkey-arm64.h | 73 static inline u32 pkey_bit_position(int pkey) in pkey_bit_position() 83 void expect_fault_on_read_execonly_key(void *p1, int pkey) in expect_fault_on_read_execonly_key() 87 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage() 93 static inline u64 set_pkey_bits(u64 reg, int pkey, u64 flags) in set_pkey_bits() 113 static inline u64 get_pkey_bits(u64 reg, int pkey) in get_pkey_bits() 129 static void aarch64_write_signal_pkey(ucontext_t *uctxt, u64 pkey) in aarch64_write_signal_pkey()
|
H A D | pkey-helpers.h | 105 set_pkey_bits(u64 reg,int pkey,u64 flags) set_pkey_bits() argument 117 get_pkey_bits(u64 reg,int pkey) get_pkey_bits() argument 160 __pkey_access_allow(int pkey,int do_allow) __pkey_access_allow() argument 174 __pkey_write_allow(int pkey,int do_allow_write) __pkey_write_allow() argument [all...] |
H A D | pkey-powerpc.h | 37 static inline u32 pkey_bit_position(int pkey) in pkey_bit_position() 94 void expect_fault_on_read_execonly_key(void *p1, int pkey) in expect_fault_on_read_execonly_key() 108 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage()
|
H A D | pkey-x86.h | 105 static inline u32 pkey_bit_position(int pkey) in pkey_bit_position() 149 void expect_fault_on_read_execonly_key(void *p1, int pkey) in expect_fault_on_read_execonly_key() 158 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage()
|
/linux/drivers/infiniband/core/ |
H A D | security.c | 48 struct pkey_index_qp_list *pkey = NULL; in get_pkey_idx_qp_list() local 65 u16 *pkey, in get_pkey_and_subnet_prefix() 80 static int enforce_qp_pkey_security(u16 pkey, in enforce_qp_pkey_security() 115 u16 pkey; in check_qp_port_pkey_settings() local 194 static inline void check_pkey_qps(struct pkey_index_qp_list *pkey, in check_pkey_qps() 246 struct pkey_index_qp_list *pkey; in port_pkey_list_insert() local 304 struct pkey_index_qp_list *pkey; in port_pkey_list_remove() local 544 struct pkey_index_qp_list *pkey; in ib_security_cache_change() local 557 struct pkey_index_qp_list *pkey, *tmp_pkey; in ib_security_release_port_pkey_list() local 657 u16 pkey; in ib_security_pkey_access() local
|
/linux/security/selinux/ |
H A D | ibpkey.c | 55 static unsigned int sel_ib_pkey_hashfn(u16 pkey) in sel_ib_pkey_hashfn() 73 struct sel_ib_pkey *pkey; in sel_ib_pkey_find() local 93 static void sel_ib_pkey_insert(struct sel_ib_pkey *pkey) in sel_ib_pkey_insert() 132 struct sel_ib_pkey *pkey; in sel_ib_pkey_sid_slow() local 183 struct sel_ib_pkey *pkey; in sel_ib_pkey_sid() local 207 struct sel_ib_pkey *pkey, *pkey_tmp; in sel_ib_pkey_flush() local
|
/linux/arch/arm64/include/asm/ |
H A D | pkeys.h | 29 int prot, int pkey) in arch_override_mprotect_pkey() 44 #define mm_set_pkey_allocated(mm, pkey) do { \ argument 47 #define mm_set_pkey_free(mm, pkey) do { \ argument 51 static inline bool mm_pkey_is_allocated(struct mm_struct *mm, int pkey) in mm_pkey_is_allocated() 96 static inline int mm_pkey_free(struct mm_struct *mm, int pkey) in mm_pkey_free()
|
H A D | por.h | 12 static inline bool por_elx_allows_read(u64 por, u8 pkey) in por_elx_allows_read() 19 static inline bool por_elx_allows_write(u64 por, u8 pkey) in por_elx_allows_write() 26 static inline bool por_elx_allows_exec(u64 por, u8 pkey) in por_elx_allows_exec()
|
/linux/arch/x86/include/asm/ |
H A D | pkeys.h | 36 int prot, int pkey) in arch_override_mprotect_pkey() 47 #define mm_set_pkey_allocated(mm, pkey) do { \ argument 50 #define mm_set_pkey_free(mm, pkey) do { \ argument 55 bool mm_pkey_is_allocated(struct mm_struct *mm, int pkey) in mm_pkey_is_allocated() 108 int mm_pkey_free(struct mm_struct *mm, int pkey) in mm_pkey_free()
|
H A D | pkru.h | 19 static inline bool __pkru_allows_read(u32 pkru, u16 pkey) in __pkru_allows_read() 25 static inline bool __pkru_allows_write(u32 pkru, u16 pkey) in __pkru_allows_write()
|
/linux/include/linux/ |
H A D | pkeys.h | 14 #define arch_override_mprotect_pkey(vma, prot, pkey) (0) argument 23 static inline bool mm_pkey_is_allocated(struct mm_struct *mm, int pkey) in mm_pkey_is_allocated() 33 static inline int mm_pkey_free(struct mm_struct *mm, int pkey) in mm_pkey_free() 38 static inline int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, in arch_set_user_pkey_access()
|
H A D | mman.h | 93 #define arch_calc_vm_prot_bits(prot, pkey) 0 argument 142 calc_vm_prot_bits(unsigned long prot, unsigned long pkey) in calc_vm_prot_bits()
|
/linux/arch/powerpc/mm/book3s64/ |
H A D | pkeys.c | 49 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey+1) * AMR_BITS_PER_PKEY)) argument 315 static inline void init_amr(int pkey, u8 init_bits) in init_amr() 323 static inline void init_iamr(int pkey, u8 init_bits) in init_iamr() 338 int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, in __arch_set_user_pkey_access() 392 int pkey) in __arch_override_mprotect_pkey() 415 static bool pkey_access_permitted(int pkey, bool write, bool execute) in pkey_access_permitted()
|
/linux/tools/testing/selftests/powerpc/include/ |
H A D | pkeys.h | 52 void pkey_set_rights(int pkey, unsigned long rights) in pkey_set_rights() 63 int sys_pkey_mprotect(void *addr, size_t len, int prot, int pkey) in sys_pkey_mprotect() 73 int sys_pkey_free(int pkey) in sys_pkey_free() 81 int pkey; in pkeys_unsupported() local
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | ud.c | 70 u16 pkey; in ud_loopback() local 226 u16 *pkey, u32 extra_bytes, bool bypass) in hfi1_make_bth_deth() 265 u16 len, slid, dlid, pkey; in hfi1_make_ud_req_9B() local 343 u16 len, pkey; in hfi1_make_ud_req_16B() local 555 int hfi1_lookup_pkey_idx(struct hfi1_ibport *ibp, u16 pkey) in hfi1_lookup_pkey_idx() 592 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid, in return_cnp_16B() 654 u16 pkey, u32 slid, u32 dlid, u8 sc5, in return_cnp() 726 static int opa_smp_check(struct hfi1_ibport *ibp, u16 pkey, u8 sc5, in opa_smp_check() 813 u16 pkey; in hfi1_ud_rcv() local
|
H A D | ruc.c | 37 u16 pkey = packet->pkey; in hfi1_ruc_check_hdr() local 241 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_16B() local 328 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_9B() local
|
H A D | trace.c | 120 u16 *pkey, u32 *psn, u32 *qpn) in hfi1_trace_parse_9b_bth() 171 u16 *entropy, u16 *len, u16 *pkey, in hfi1_trace_parse_16b_hdr() 195 u16 len, u16 pkey, u32 dlid, u32 slid) in hfi1_trace_fmt_lrh() 224 u8 tver, u16 pkey, u32 psn, u32 qpn, in hfi1_trace_fmt_rest()
|
/linux/crypto/asymmetric_keys/ |
H A D | public_key.c | 67 software_key_determine_akcipher(const struct public_key *pkey, in software_key_determine_akcipher() 157 struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_query() local 284 const struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_eds_op() local 387 int public_key_verify_signature(const struct public_key *pkey, in public_key_verify_signature()
|
/linux/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_vlan.c | 95 u16 pkey, int type) in __ipoib_vlan_add() 167 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_add() 251 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_delete()
|
/linux/crypto/ |
H A D | rsa.c | 123 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_enc() local 162 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_dec() local 373 struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); in rsa_max_size() local 380 struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); in rsa_exit_tfm() local
|
/linux/include/net/ |
H A D | ndisc.h | 356 static inline u32 ndisc_hashfn(const void *pkey, const struct net_device *dev, __u32 *hash_rnd) in ndisc_hashfn() 366 static inline struct neighbour *__ipv6_neigh_lookup_noref(struct net_device *dev, const void *pkey) in __ipv6_neigh_lookup_noref() 373 const void *pkey) in __ipv6_neigh_lookup_noref_stub() 379 static inline struct neighbour *__ipv6_neigh_lookup(struct net_device *dev, const void *pkey) in __ipv6_neigh_lookup() 393 const void *pkey) in __ipv6_confirm_neigh() 404 const void *pkey) in __ipv6_confirm_neigh_stub()
|
H A D | neighbour.h | 279 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey) in neigh_key_eq32() 284 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey) in neigh_key_eq128() 295 bool (*key_eq)(const struct neighbour *n, const void *pkey), in ___neigh_lookup_noref() 296 __u32 (*hash)(const void *pkey, in ___neigh_lookup_noref() 318 const void *pkey, in __neigh_lookup_noref() 342 const void *pkey, in neigh_create() 546 __neigh_lookup(struct neigh_table *tbl, const void *pkey, struct net_device *dev, int creat) in __neigh_lookup() 558 __neigh_lookup_errno(struct neigh_table *tbl, const void *pkey, in __neigh_lookup_errno()
|
/linux/arch/x86/mm/ |
H A D | pkeys.c | 76 int __arch_override_mprotect_pkey(struct vm_area_struct *vma, int prot, int pkey) in __arch_override_mprotect_pkey() 113 #define PKRU_AD_MASK(pkey) (PKRU_AD_BIT << ((pkey) * PKRU_BITS_PER_PKEY)) argument
|