Home
last modified time | relevance | path

Searched defs:pkey (Results 1 – 25 of 79) sorted by relevance

1234

/linux/tools/testing/selftests/mm/
H A Dprotection_keys.c184 hw_pkey_get(int pkey,unsigned long flags) hw_pkey_get() argument
195 hw_pkey_set(int pkey,unsigned long rights,unsigned long flags) hw_pkey_set() argument
216 pkey_disable_set(int pkey,int flags) pkey_disable_set() argument
254 pkey_disable_clear(int pkey,int flags) pkey_disable_clear() argument
280 pkey_write_allow(int pkey) pkey_write_allow() argument
284 pkey_write_deny(int pkey) pkey_write_deny() argument
288 pkey_access_allow(int pkey) pkey_access_allow() argument
292 pkey_access_deny(int pkey) pkey_access_deny() argument
555 mprotect_pkey(void * ptr,size_t size,unsigned long orig_prot,unsigned long pkey) mprotect_pkey() argument
660 malloc_pkey_with_mprotect(long size,int prot,u16 pkey) malloc_pkey_with_mprotect() argument
680 malloc_pkey_anon_huge(long size,int prot,u16 pkey) malloc_pkey_anon_huge() argument
761 malloc_pkey_hugetlb(long size,int prot,u16 pkey) malloc_pkey_hugetlb() argument
790 malloc_pkey(long size,int prot,u16 pkey) malloc_pkey() argument
822 expected_pkey_fault(int pkey) expected_pkey_fault() argument
892 test_pkey_alloc_free_attach_pkey0(int * ptr,u16 pkey) test_pkey_alloc_free_attach_pkey0() argument
944 test_read_of_write_disabled_region(int * ptr,u16 pkey) test_read_of_write_disabled_region() argument
954 test_read_of_access_disabled_region(int * ptr,u16 pkey) test_read_of_access_disabled_region() argument
967 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
984 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
994 test_write_of_write_disabled_region(int * ptr,u16 pkey) test_write_of_write_disabled_region() argument
1001 test_write_of_access_disabled_region(int * ptr,u16 pkey) test_write_of_access_disabled_region() argument
1010 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
1020 test_kernel_write_of_access_disabled_region(int * ptr,u16 pkey) test_kernel_write_of_access_disabled_region() argument
1033 test_kernel_write_of_write_disabled_region(int * ptr,u16 pkey) test_kernel_write_of_write_disabled_region() argument
1046 test_kernel_gup_of_access_disabled_region(int * ptr,u16 pkey) test_kernel_gup_of_access_disabled_region() argument
1068 test_kernel_gup_write_to_write_disabled_region(int * ptr,u16 pkey) test_kernel_gup_write_to_write_disabled_region() argument
1086 test_pkey_syscalls_on_non_allocated_pkey(int * ptr,u16 pkey) test_pkey_syscalls_on_non_allocated_pkey() argument
1109 test_pkey_syscalls_bad_args(int * ptr,u16 pkey) test_pkey_syscalls_bad_args() argument
1135 test_pkey_alloc_exhaust(int * ptr,u16 pkey) test_pkey_alloc_exhaust() argument
1241 test_pkey_init_state(int * ptr,u16 pkey) test_pkey_init_state() argument
1279 test_mprotect_with_pkey_0(int * ptr,u16 pkey) test_mprotect_with_pkey_0() argument
1303 test_ptrace_of_child(int * ptr,u16 pkey) test_ptrace_of_child() argument
1400 test_executing_on_unreadable_memory(int * ptr,u16 pkey) test_executing_on_unreadable_memory() argument
1432 test_implicit_mprotect_exec_only_memory(int * ptr,u16 pkey) test_implicit_mprotect_exec_only_memory() argument
1481 test_ptrace_modifies_pkru(int * ptr,u16 pkey) test_ptrace_modifies_pkru() argument
1604 test_ptrace_modifies_pkru(int * ptr,u16 pkey) test_ptrace_modifies_pkru() argument
1681 test_mprotect_pkey_on_unsupported_cpu(int * ptr,u16 pkey) test_mprotect_pkey_on_unsupported_cpu() argument
1727 int pkey; run_tests_once() local
[all...]
H A Dpkey_util.c16 int sys_pkey_free(unsigned long pkey) in sys_pkey_free()
24 unsigned long pkey) in sys_mprotect_pkey()
H A Dpkey-powerpc.h39 static inline u32 pkey_bit_position(int pkey) in pkey_bit_position()
96 static inline void expect_fault_on_read_execonly_key(void *p1, int pkey) in expect_fault_on_read_execonly_key()
120 static inline void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage()
H A Dpkey-helpers.h122 set_pkey_bits(u64 reg,int pkey,u64 flags) set_pkey_bits() argument
134 get_pkey_bits(u64 reg,int pkey) get_pkey_bits() argument
[all...]
H A Dmseal_test.c75 unsigned long pkey) in sys_mprotect_pkey()
146 static unsigned long pkey_bit_position(int pkey) in pkey_bit_position()
151 static u64 set_pkey_bits(u64 reg, int pkey, u64 flags) in set_pkey_bits()
162 static void set_pkey(int pkey, unsigned long pkey_value) in set_pkey()
221 int pkey = sys_pkey_alloc(0, PKEY_UNRESTRICTED); in pkey_supported() local
1667 int pkey; in test_seal_discard_ro_anon_on_pkey() local
H A Dpkey_sighandler_tests.c287 int pkey; in test_sigsegv_handler_with_different_pkey_for_stack() local
443 int pkey; in test_pkru_sigreturn() local
/linux/drivers/infiniband/core/
H A Dsecurity.c48 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 Dibpkey.c56 static unsigned int sel_ib_pkey_hashfn(u16 pkey) in sel_ib_pkey_hashfn() argument
74 struct sel_ib_pkey *pkey; in sel_ib_pkey_find() local
94 sel_ib_pkey_insert(struct sel_ib_pkey * pkey) sel_ib_pkey_insert() argument
133 struct sel_ib_pkey *pkey; sel_ib_pkey_sid_slow() local
183 struct sel_ib_pkey *pkey; sel_ib_pkey_sid() local
207 struct sel_ib_pkey *pkey, *pkey_tmp; sel_ib_pkey_flush() local
[all...]
/linux/include/linux/
H A Dpkeys.h14 #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()
/linux/drivers/infiniband/hw/hfi1/
H A Dud.c70 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 Druc.c37 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 Dtrace.c120 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/drivers/infiniband/ulp/ipoib/
H A Dipoib_vlan.c98 u16 pkey, int type) in __ipoib_vlan_add()
168 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_add()
252 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_delete()
/linux/arch/x86/include/asm/
H A Dpkru.h19 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/net/
H A Dneighbour.h289 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey) in neigh_key_eq32()
294 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey) in neigh_key_eq128()
305 bool (*key_eq)(const struct neighbour *n, const void *pkey), in ___neigh_lookup_noref()
306 __u32 (*hash)(const void *pkey, in ___neigh_lookup_noref()
325 const void *pkey, in __neigh_lookup_noref()
349 const void *pkey, in neigh_create()
564 __neigh_lookup(struct neigh_table *tbl, const void *pkey, struct net_device *dev, int creat) in __neigh_lookup()
576 __neigh_lookup_errno(struct neigh_table *tbl, const void *pkey, in __neigh_lookup_errno()
H A Darp.h13 static inline u32 arp_hashfn(const void *pkey, const struct net_device *dev, u32 *hash_rnd) in arp_hashfn()
/linux/crypto/asymmetric_keys/
H A Drestrict.c138 const struct public_key *pkey; in restrict_link_by_ca() local
179 const struct public_key *pkey; in restrict_link_by_digsig() local
/linux/arch/x86/mm/
H A Dfault.c721 kernelmode_fixup_or_oops(struct pt_regs * regs,unsigned long error_code,unsigned long address,int signal,int si_code,u32 pkey) kernelmode_fixup_or_oops() argument
778 __bad_area_nosemaphore(struct pt_regs * regs,unsigned long error_code,unsigned long address,u32 pkey,int si_code) __bad_area_nosemaphore() argument
836 __bad_area(struct pt_regs * regs,unsigned long error_code,unsigned long address,struct mm_struct * mm,struct vm_area_struct * vma,u32 pkey,int si_code) __bad_area() argument
898 u32 pkey = vma_pkey(vma); bad_area_access_error() local
[all...]
/linux/security/selinux/include/
H A Dibpkey.h28 static inline int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey, u32 *sid) in sel_ib_pkey_sid()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fsp/
H A Dbase.c9 u64 img_addr, const u8 *hash, const u8 *pkey, const u8 *sig) in nvkm_fsp_boot_gsp_fmc()
/linux/net/ipv6/
H A Dndisc.c313 static u32 ndisc_hash(const void *pkey, in ndisc_hash() argument
320 static bool ndisc_key_eq(const struct neighbour *n, const void *pkey) in ndisc_key_eq() argument
766 static int pndisc_is_router(const void *pkey, in pndisc_is_router() argument
1786 ndisc_is_multicast(const void * pkey) ndisc_is_multicast() argument
[all...]
/linux/net/ipv4/
H A Darp.c211 static u32 arp_hash(const void *pkey, in arp_hash()
218 static bool arp_key_eq(const struct neighbour *neigh, const void *pkey) in arp_key_eq()
958 static int arp_is_multicast(const void *pkey) in arp_is_multicast()
H A Dfib_trie.c1517 t_key pkey = pn->key; in fib_table_lookup() local
1785 t_key pkey = pn->key; in leaf_walk_rcu() local
1827 t_key pkey = pn->key; in fib_trie_free() local
1945 t_key pkey = pn->key; in fib_table_flush_external() local
2016 t_key pkey = pn->key; in fib_table_flush() local
2102 t_key pkey = pn->key; __fib_info_notify_update() local
2432 t_key pkey; fib_trie_get_next() local
[all...]
/linux/lib/
H A Ddigsig.c74 MPI in = NULL, res = NULL, pkey[2]; in digsig_verify_rsa() local
/linux/net/core/
H A Dneighbour.c625 neigh_lookup(struct neigh_table * tbl,const void * pkey,struct net_device * dev) neigh_lookup() argument
646 ___neigh_create(struct neigh_table * tbl,const void * pkey,struct net_device * dev,u32 flags,bool exempt_from_gc,bool want_ref) ___neigh_create() argument
738 __neigh_create(struct neigh_table * tbl,const void * pkey,struct net_device * dev,bool want_ref) __neigh_create() argument
747 pneigh_hash(const void * pkey,unsigned int key_len) pneigh_hash() argument
758 pneigh_lookup(struct neigh_table * tbl,struct net * net,const void * pkey,struct net_device * dev) pneigh_lookup() argument
783 pneigh_create(struct neigh_table * tbl,struct net * net,const void * pkey,struct net_device * dev,u32 flags,u8 protocol,bool permanent) pneigh_create() argument
837 pneigh_delete(struct neigh_table * tbl,struct net * net,const void * pkey,struct net_device * dev) pneigh_delete() argument
[all...]

1234