/linux-master/arch/x86/mm/ |
H A D | fault.c | 721 u32 pkey) 778 unsigned long address, u32 pkey, int si_code) 784 SIGSEGV, si_code, pkey); 821 force_sig_pkuerr((void __user *)address, pkey); 837 unsigned long address, u32 pkey, int si_code) 846 __bad_area_nosemaphore(regs, error_code, address, pkey, si_code); 879 * from the XSAVE state. This function captures the pkey from 888 * 1. T1 : mprotect_key(foo, PAGE_SIZE, pkey=4); 889 * 2. T1 : set PKRU to deny access to pkey=4, touches page 891 * 4. T2: mprotect_key(foo, PAGE_SIZE, pkey 719 kernelmode_fixup_or_oops(struct pt_regs *regs, unsigned long error_code, unsigned long address, int signal, int si_code, u32 pkey) argument 777 __bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code, unsigned long address, u32 pkey, int si_code) argument 836 __bad_area(struct pt_regs *regs, unsigned long error_code, unsigned long address, u32 pkey, int si_code) argument 896 u32 pkey = vma_pkey(vma); local [all...] |
/linux-master/drivers/s390/crypto/ |
H A D | zcrypt_ep11misc.c | 6 * Collection of EP11 misc functions used by zcrypt and pkey 17 #include <asm/pkey.h> 1487 u8 pkey[]; member in struct:wk_info 1511 ZCRYPT_DBF_ERR("%s rewrapping ep11 key to pkey failed, rc=%d\n", 1517 /* check struct version and pkey type */ 1572 memcpy(protkey, wki->pkey, wki->pkeysize);
|
H A D | zcrypt_ccamisc.c | 7 * Collection of CCA misc functions used by zcrypt and pkey 18 #include <asm/pkey.h>
|
/linux-master/drivers/nvme/target/ |
H A D | auth.c | 510 u8 *pkey, int pkey_size) 520 pkey, pkey_size, 509 nvmet_auth_ctrl_sesskey(struct nvmet_req *req, u8 *pkey, int pkey_size) argument
|
/linux-master/drivers/net/vxlan/ |
H A D | vxlan_core.c | 2336 struct ip_tunnel_key *pkey; local 2360 pkey = &key; 2423 pkey = &info->key; 2452 &saddr, pkey, src_port, dst_port, 2494 unclone->key.u.ipv4.src = pkey->u.ipv4.dst; 2510 pkey->u.ipv4.dst, tos, ttl, df, 2521 ifindex, &saddr, pkey, 2553 unclone->key.u.ipv6.src = pkey->u.ipv6.dst; 2571 &saddr, &pkey->u.ipv6.dst, tos, ttl, 2572 pkey [all...] |
/linux-master/arch/s390/crypto/ |
H A D | paes_s390.c | 29 #include <asm/pkey.h> 75 /* clear key value, prepare pkey clear key token in keybuf */ 86 /* other key material, let pkey handle this */ 146 struct pkey_protkey pkey; local 148 pkey.len = sizeof(pkey.protkey); 149 ret = __paes_keyblob2pkey(&ctx->kb, &pkey); 154 memcpy(&ctx->pk, &pkey, sizeof(pkey));
|
/linux-master/tools/testing/selftests/mm/ |
H A D | protection_keys.c | 7 * * how to set/clear bits in pkey registers (the rights register) 8 * * how to handle SEGV_PKUERR signals and extract pkey-relevant 17 * look for pkey "leaks" where it is still set on a VMA but "freed" back to the kernel 18 * do a plain mprotect() to a mprotect_pkey() area and make sure the pkey sticks 49 #include "pkey-helpers.h" 178 static u32 hw_pkey_get(int pkey, unsigned long flags) argument 182 dprintf1("%s(pkey=%d, flags=%lx) = %x / %d\n", 183 __func__, pkey, flags, 0, 0); 186 return (u32) get_pkey_bits(pkey_reg, pkey); 189 static int hw_pkey_set(int pkey, unsigne argument 210 pkey_disable_set(int pkey, int flags) argument 251 pkey_disable_clear(int pkey, int flags) argument 280 pkey_write_allow(int pkey) argument 284 pkey_write_deny(int pkey) argument 288 pkey_access_allow(int pkey) argument 292 pkey_access_deny(int pkey) argument 461 sys_mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, unsigned long pkey) argument 535 sys_pkey_free(unsigned long pkey) argument 587 mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, unsigned long pkey) argument 696 malloc_pkey_with_mprotect(long size, int prot, u16 pkey) argument 716 malloc_pkey_anon_huge(long size, int prot, u16 pkey) argument 797 malloc_pkey_hugetlb(long size, int prot, u16 pkey) argument 818 malloc_pkey_mmap_dax(long size, int prot, u16 pkey) argument 853 malloc_pkey(long size, int prot, u16 pkey) argument 885 expected_pkey_fault(int pkey) argument 963 test_pkey_alloc_free_attach_pkey0(int *ptr, u16 pkey) argument 1015 test_read_of_write_disabled_region(int *ptr, u16 pkey) argument 1025 test_read_of_access_disabled_region(int *ptr, u16 pkey) argument 1037 test_read_of_access_disabled_region_with_page_already_mapped(int *ptr, u16 pkey) argument 1054 test_write_of_write_disabled_region_with_page_already_mapped(int *ptr, u16 pkey) argument 1065 test_write_of_write_disabled_region(int *ptr, u16 pkey) argument 1072 test_write_of_access_disabled_region(int *ptr, u16 pkey) argument 1080 test_write_of_access_disabled_region_with_page_already_mapped(int *ptr, u16 pkey) argument 1091 test_kernel_write_of_access_disabled_region(int *ptr, u16 pkey) argument 1103 test_kernel_write_of_write_disabled_region(int *ptr, u16 pkey) argument 1116 test_kernel_gup_of_access_disabled_region(int *ptr, u16 pkey) argument 1138 test_kernel_gup_write_to_write_disabled_region(int *ptr, u16 pkey) argument 1156 test_pkey_syscalls_on_non_allocated_pkey(int *ptr, u16 pkey) argument 1179 test_pkey_syscalls_bad_args(int *ptr, u16 pkey) argument 1205 test_pkey_alloc_exhaust(int *ptr, u16 pkey) argument 1311 test_pkey_init_state(int *ptr, u16 pkey) argument 1349 test_mprotect_with_pkey_0(int *ptr, u16 pkey) argument 1373 test_ptrace_of_child(int *ptr, u16 pkey) argument 1470 test_executing_on_unreadable_memory(int *ptr, u16 pkey) argument 1497 test_implicit_mprotect_exec_only_memory(int *ptr, u16 pkey) argument 1546 test_ptrace_modifies_pkru(int *ptr, u16 pkey) argument 1668 test_mprotect_pkey_on_unsupported_cpu(int *ptr, u16 pkey) argument 1714 int pkey; local [all...] |
H A D | run_vmtests.sh | 58 - pkey 391 CATEGORY="pkey" run_test ./protection_keys_32 396 CATEGORY="pkey" run_test ./protection_keys_64
|
/linux-master/net/ipv4/ |
H A D | route.c | 418 __be32 pkey; local 420 pkey = skb ? ip_hdr(skb)->daddr : *((__be32 *) daddr); 421 n = ip_neigh_gw4(dev, pkey); 436 const __be32 *pkey = daddr; local 439 pkey = (const __be32 *)&rt->rt_gw4; 447 __ipv4_confirm_neigh(dev, *(__force u32 *)pkey);
|
/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | mad.c | 476 u16 *pkey) 496 *pkey = be16_to_cpu(((__be16 *)out_mad->data)[index % 32]); 475 mlx5_query_mad_ifc_pkey(struct ib_device *ibdev, u32 port, u16 index, u16 *pkey) argument
|
H A D | mlx5_ib.h | 1371 u16 *pkey);
|
/linux-master/drivers/infiniband/core/ |
H A D | cm.c | 236 __be16 pkey; member in struct:cm_id_private 525 be16_to_cpu(path->pkey), &av->pkey_index); 1353 be16_to_cpu(param->primary_path->pkey)); 1487 (param->alternate_path->pkey != param->primary_path->pkey || 1547 cm_id_priv->pkey = param->primary_path->pkey; 1707 primary_path->pkey = 1735 alt_path->pkey = 1761 u16 pkey; local [all...] |
H A D | device.c | 2378 * @pkey:Returned P_Key 2383 u32 port_num, u16 index, u16 *pkey) 2391 return device->ops.query_pkey(device, port_num, index, pkey); 2494 * @pkey: The PKey value to search for. 2498 u32 port_num, u16 pkey, u16 *index) 2509 if ((pkey & 0x7fff) == (tmp_pkey & 0x7fff)) { 2510 /* if there is full-member pkey take it.*/ 2534 * @pkey: The Pkey the request came on. 2542 u16 pkey, 2565 net_dev = client->get_net_dev_by_params(dev, port, pkey, gi 2382 ib_query_pkey(struct ib_device *device, u32 port_num, u16 index, u16 *pkey) argument 2497 ib_find_pkey(struct ib_device *device, u32 port_num, u16 pkey, u16 *index) argument 2540 ib_get_net_dev_by_params(struct ib_device *dev, u32 port, u16 pkey, const union ib_gid *gid, const struct sockaddr *addr) argument [all...] |
/linux-master/security/ |
H A D | security.c | 4987 * security_ib_pkey_access() - Check if access to an IB pkey is allowed 4990 * @pkey: IB pkey 4992 * Check permission to access a pkey when modifying a QP. 4996 int security_ib_pkey_access(void *sec, u64 subnet_prefix, u16 pkey) argument 4998 return call_int_hook(ib_pkey_access, sec, subnet_prefix, pkey);
|
/linux-master/include/linux/ |
H A D | mman.h | 93 #define arch_calc_vm_prot_bits(prot, pkey) 0 142 calc_vm_prot_bits(unsigned long prot, unsigned long pkey) argument 147 arch_calc_vm_prot_bits(prot, pkey);
|
/linux-master/crypto/asymmetric_keys/ |
H A D | public_key.c | 67 software_key_determine_akcipher(const struct public_key *pkey, argument 79 if (strcmp(pkey->pkey_algo, "rsa") == 0) { 89 pkey->pkey_algo); 93 pkey->pkey_algo, hash_algo); 106 } else if (strncmp(pkey->pkey_algo, "ecdsa", 5) == 0) { 127 } else if (strcmp(pkey->pkey_algo, "sm2") == 0) { 134 } else if (strcmp(pkey->pkey_algo, "ecrdsa") == 0) { 146 if (strscpy(alg_name, pkey->pkey_algo, CRYPTO_MAX_ALG_NAME) < 0) 164 struct public_key *pkey = params->key->payload.data[asym_crypto]; local 171 ret = software_key_determine_akcipher(pkey, param 279 const struct public_key *pkey = params->key->payload.data[asym_crypto]; local 382 public_key_verify_signature(const struct public_key *pkey, const struct public_key_signature *sig) argument [all...] |
/linux-master/arch/x86/kernel/fpu/ |
H A D | xstate.c | 999 * rights for @pkey to @init_val. 1001 int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, argument 1015 * This code should only be called with valid 'pkey' 1019 if (WARN_ON_ONCE(pkey >= arch_max_pkey())) 1028 /* Shift the bits in to the correct place in PKRU for pkey: */ 1029 pkey_shift = pkey * PKRU_BITS_PER_PKEY;
|
/linux-master/mm/ |
H A D | mmap.c | 1221 int pkey = 0; local 1271 pkey = execute_only_pkey(mm); 1272 if (pkey < 0) 1273 pkey = 0; 1280 vm_flags |= calc_vm_prot_bits(prot, pkey) | calc_vm_flag_bits(flags) |
|
/linux-master/include/rdma/ |
H A D | ib_verbs.h | 1763 /* Hold this mutex when changing port and pkey settings. */ 2174 struct ib_pkey_cache *pkey; member in struct:ib_port_cache 2428 u16 *pkey); 2799 * @pkey: P_Key that the net_dev uses if applicable. 2813 u16 pkey, 3449 u32 port_num, u16 index, u16 *pkey); 3463 u32 port_num, u16 pkey, u16 *index); 4427 u16 pkey, const union ib_gid *gid,
|
/linux-master/drivers/infiniband/ulp/srpt/ |
H A D | ib_srpt.c | 1133 ch->pkey, &attr->pkey_index); 1135 pr_err("Translating pkey %#x failed (%d) - using index 0\n", 1136 ch->pkey, ret); 2139 * @pkey: P_Key of the incoming connection. 2150 u8 port_num, __be16 pkey, 2172 pr_info("Received SRP_LOGIN_REQ with i_port_id %pI6, t_port_id %pI6 and it_iu_len %d on port %d (guid=%pI6); pkey %#04x\n", 2174 port_num, &sport->gid, be16_to_cpu(pkey)); 2224 ch->pkey = be16_to_cpu(pkey); 2542 param->primary_path->pkey, 2147 srpt_cm_req_recv(struct srpt_device *const sdev, struct ib_cm_id *ib_cm_id, struct rdma_cm_id *rdma_cm_id, u8 port_num, __be16 pkey, const struct srp_login_req *req, const char *src_addr) argument [all...] |
/linux-master/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_multicast.c | 482 rec.pkey = cpu_to_be16(priv->pkey); 858 /* signature lower, pkey */
|
/linux-master/drivers/infiniband/sw/rxe/ |
H A D | rxe_verbs.c | 75 u32 port_num, u16 index, u16 *pkey) 82 rxe_dbg_dev(rxe, "bad pkey index = %d\n", index); 86 *pkey = IB_DEFAULT_PKEY_FULL; 74 rxe_query_pkey(struct ib_device *ibdev, u32 port_num, u16 index, u16 *pkey) argument
|
/linux-master/drivers/infiniband/hw/irdma/ |
H A D | verbs.c | 1130 * @index: index of pkey 1131 * @pkey: pointer to store the pkey 1134 u16 *pkey) 1139 *pkey = IRDMA_DEFAULT_PKEY; 1133 irdma_query_pkey(struct ib_device *ibdev, u32 port, u16 index, u16 *pkey) argument
|
/linux-master/drivers/infiniband/hw/hns/ |
H A D | hns_roce_main.c | 270 u16 *pkey) 275 *pkey = PKEY_ID; 269 hns_roce_query_pkey(struct ib_device *ib_dev, u32 port, u16 index, u16 *pkey) argument
|
/linux-master/drivers/infiniband/hw/efa/ |
H A D | efa.h | 156 u16 *pkey);
|