/kernel/linux/linux-6.6/security/keys/ |
H A D | key.c | 2 /* Basic authentication token and access key management 27 unsigned int key_quota_root_maxkeys = 1000000; /* root's key count quota */ 28 unsigned int key_quota_root_maxbytes = 25000000; /* root's key space quota */ 29 unsigned int key_quota_maxkeys = 200; /* general key count quota */ 30 unsigned int key_quota_maxbytes = 20000; /* general key space quota */ 35 /* We serialise key instantiation and link */ 39 void __key_check(const struct key *key) in __key_check() argument 41 printk("__key_check: key %p {%08x} should be {%08x}\n", in __key_check() 42 key, ke in __key_check() 134 key_alloc_serial(struct key *key) key_alloc_serial() argument 231 struct key *key; key_alloc() local 373 key_payload_reserve(struct key *key, size_t datalen) key_payload_reserve() argument 410 mark_key_instantiated(struct key *key, int reject_error) mark_key_instantiated() argument 425 __key_instantiate_and_link(struct key *key, struct key_preparsed_payload *prep, struct key *keyring, struct key *authkey, struct assoc_array_edit **_edit) __key_instantiate_and_link() argument 496 key_instantiate_and_link(struct key *key, const void *data, size_t datalen, struct key *keyring, struct key *authkey) key_instantiate_and_link() argument 572 key_reject_and_link(struct key *key, unsigned timeout, unsigned error, struct key *keyring, struct key *authkey) key_reject_and_link() argument 644 key_put(struct key *key) key_put() argument 661 struct key *key; key_lookup() local 720 key_set_timeout(struct key *key, unsigned timeout) key_set_timeout() argument 752 struct key *key = key_ref_to_ptr(key_ref); __key_update() local 805 struct key *keyring, *key = NULL; __key_create_or_update() local 1064 struct key *key = key_ref_to_ptr(key_ref); key_update() local 1116 key_revoke(struct key *key) key_revoke() argument 1152 key_invalidate(struct key *key) key_invalidate() argument 1179 generic_key_instantiate(struct key *key, struct key_preparsed_payload *prep) generic_key_instantiate() argument [all...] |
H A D | request_key.c | 2 /* Request a key from userspace 7 * See Documentation/security/keys/request-key.rst 20 #define key_negative_timeout 60 /* default timeout on a negative key's existence */ 22 static struct key *check_cached_key(struct keyring_search_context *ctx) in check_cached_key() 25 struct key *key = current->cached_requested_key; in check_cached_key() local 27 if (key && in check_cached_key() 28 ctx->match_data.cmp(key, &ctx->match_data) && in check_cached_key() 29 !(key->flags & ((1 << KEY_FLAG_INVALIDATED) | in check_cached_key() 31 return key_get(key); in check_cached_key() 36 cache_requested_key(struct key *key) cache_requested_key() argument 62 struct key *key = rka->target_key; complete_request_key() local 124 struct key *key = rka->target_key, *keyring, *session, *user_session; call_sbin_request_key() local 226 construct_key(struct key *key, const void *callout_info, size_t callout_len, void *aux, struct key *dest_keyring) construct_key() argument 376 struct key *key; construct_alloc_key() local 497 struct key *key; construct_key_and_link() local 596 struct key *key; request_key_and_link() local 676 wait_for_key_construction(struct key *key, bool intr) wait_for_key_construction() argument 711 struct key *key; request_key_tag() local 753 struct key *key; request_key_with_auxdata() local 798 struct key *key; request_key_rcu() local [all...] |
/kernel/linux/linux-5.10/security/keys/ |
H A D | key.c | 2 /* Basic authentication token and access key management 27 unsigned int key_quota_root_maxkeys = 1000000; /* root's key count quota */ 28 unsigned int key_quota_root_maxbytes = 25000000; /* root's key space quota */ 29 unsigned int key_quota_maxkeys = 200; /* general key count quota */ 30 unsigned int key_quota_maxbytes = 20000; /* general key space quota */ 35 /* We serialise key instantiation and link */ 39 void __key_check(const struct key *key) in __key_check() argument 41 printk("__key_check: key %p {%08x} should be {%08x}\n", in __key_check() 42 key, ke in __key_check() 134 key_alloc_serial(struct key *key) key_alloc_serial() argument 231 struct key *key; key_alloc() local 373 key_payload_reserve(struct key *key, size_t datalen) key_payload_reserve() argument 410 mark_key_instantiated(struct key *key, int reject_error) mark_key_instantiated() argument 425 __key_instantiate_and_link(struct key *key, struct key_preparsed_payload *prep, struct key *keyring, struct key *authkey, struct assoc_array_edit **_edit) __key_instantiate_and_link() argument 497 key_instantiate_and_link(struct key *key, const void *data, size_t datalen, struct key *keyring, struct key *authkey) key_instantiate_and_link() argument 572 key_reject_and_link(struct key *key, unsigned timeout, unsigned error, struct key *keyring, struct key *authkey) key_reject_and_link() argument 644 key_put(struct key *key) key_put() argument 661 struct key *key; key_lookup() local 720 key_set_timeout(struct key *key, unsigned timeout) key_set_timeout() argument 752 struct key *key = key_ref_to_ptr(key_ref); __key_update() local 825 struct key *keyring, *key = NULL; key_create_or_update() local 1000 struct key *key = key_ref_to_ptr(key_ref); key_update() local 1052 key_revoke(struct key *key) key_revoke() argument 1088 key_invalidate(struct key *key) key_invalidate() argument 1115 generic_key_instantiate(struct key *key, struct key_preparsed_payload *prep) generic_key_instantiate() argument [all...] |
H A D | request_key.c | 2 /* Request a key from userspace 7 * See Documentation/security/keys/request-key.rst 20 #define key_negative_timeout 60 /* default timeout on a negative key's existence */ 22 static struct key *check_cached_key(struct keyring_search_context *ctx) in check_cached_key() 25 struct key *key = current->cached_requested_key; in check_cached_key() local 27 if (key && in check_cached_key() 28 ctx->match_data.cmp(key, &ctx->match_data) && in check_cached_key() 29 !(key->flags & ((1 << KEY_FLAG_INVALIDATED) | in check_cached_key() 31 return key_get(key); in check_cached_key() 36 cache_requested_key(struct key *key) cache_requested_key() argument 62 struct key *key = rka->target_key; complete_request_key() local 124 struct key *key = rka->target_key, *keyring, *session, *user_session; call_sbin_request_key() local 226 construct_key(struct key *key, const void *callout_info, size_t callout_len, void *aux, struct key *dest_keyring) construct_key() argument 376 struct key *key; construct_alloc_key() local 497 struct key *key; construct_key_and_link() local 596 struct key *key; request_key_and_link() local 676 wait_for_key_construction(struct key *key, bool intr) wait_for_key_construction() argument 711 struct key *key; request_key_tag() local 753 struct key *key; request_key_with_auxdata() local 798 struct key *key; request_key_rcu() local [all...] |
/kernel/linux/linux-6.6/net/mac80211/ |
H A D | key.c | 36 * each station key also belongs to that interface. 39 * that are implemented in software, for each key the hardware is asked 40 * to enable that key for offloading but if it cannot do that the key is 43 * There is currently no way of knowing whether a key is handled in SW 46 * All key management is internally protected by a mutex. Within all 47 * other parts of mac80211, key references are, just as STA structure 49 * unprotected, namely the key->sta dereferences within the hardware 51 * remove the key which waits for an RCU grace period. 87 * 1. SKB resize was skipped because no key wa in increment_tailroom_need_count() 125 ieee80211_key_enable_hw_accel(struct ieee80211_key *key) ieee80211_key_enable_hw_accel() argument 234 ieee80211_key_disable_hw_accel(struct ieee80211_key *key) ieee80211_key_disable_hw_accel() argument 273 _ieee80211_set_tx_key(struct ieee80211_key *key, bool force) _ieee80211_set_tx_key() argument 291 ieee80211_set_tx_key(struct ieee80211_key *key) ieee80211_set_tx_key() argument 359 struct ieee80211_key *key = NULL; __ieee80211_set_default_key() local 394 struct ieee80211_key *key = NULL; __ieee80211_set_default_mgmt_key() local 419 struct ieee80211_key *key = NULL; __ieee80211_set_default_beacon_key() local 595 struct ieee80211_key *key; ieee80211_key_alloc() local 744 ieee80211_key_free_common(struct ieee80211_key *key) ieee80211_key_free_common() argument 767 __ieee80211_key_destroy(struct ieee80211_key *key, bool delay_tailroom) __ieee80211_key_destroy() argument 788 ieee80211_key_destroy(struct ieee80211_key *key, bool delay_tailroom) ieee80211_key_destroy() argument 803 ieee80211_key_free_unused(struct ieee80211_key *key) ieee80211_key_free_unused() argument 845 ieee80211_key_link(struct ieee80211_key *key, struct ieee80211_link_data *link, struct sta_info *sta) ieee80211_key_link() argument 948 ieee80211_key_free(struct ieee80211_key *key, bool delay_tailroom) ieee80211_key_free() argument 965 struct ieee80211_key *key; ieee80211_reenable_keys() local 992 ieee80211_iter_keys(struct ieee80211_hw *hw, struct ieee80211_vif *vif, void (*iter)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key, void *data), void *iter_data) ieee80211_iter_keys() argument 1002 struct ieee80211_key *key, *tmp; ieee80211_iter_keys() local 1027 _ieee80211_iter_keys_rcu(struct ieee80211_hw *hw, struct ieee80211_sub_if_data *sdata, void (*iter)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key, void *data), void *iter_data) _ieee80211_iter_keys_rcu() argument 1036 struct ieee80211_key *key; _ieee80211_iter_keys_rcu() local 1051 ieee80211_iter_keys_rcu(struct ieee80211_hw *hw, struct ieee80211_vif *vif, void (*iter)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key, void *data), void *iter_data) ieee80211_iter_keys_rcu() argument 1076 struct ieee80211_key *key, *tmp; ieee80211_free_keys_iface() local 1100 struct ieee80211_key *key, *tmp; ieee80211_remove_link_keys() local 1117 struct ieee80211_key *key, *tmp; ieee80211_free_key_list() local 1131 struct ieee80211_key *key, *tmp; ieee80211_free_keys() local 1176 struct ieee80211_key *key; ieee80211_free_sta_keys() local 1249 struct ieee80211_key *key; ieee80211_get_key_rx_seq() local 1302 struct ieee80211_key *key; ieee80211_set_key_rx_seq() local 1357 struct ieee80211_key *key; ieee80211_remove_key() local 1386 struct ieee80211_key *key; ieee80211_gtk_rekey_add() local 1415 struct ieee80211_key *key; ieee80211_key_mic_failure() local 1437 struct ieee80211_key *key; ieee80211_key_replay() local 1466 struct ieee80211_key *key; ieee80211_key_switch_links() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/wfx/ |
H A D | key.c | 11 #include "key.h" 29 WARN(!(wdev->key_map & BIT(idx)), "inconsistent key allocation"); in wfx_free_key() 34 struct ieee80211_key_conf *key, u8 *peer_addr) in fill_wep_pair() 36 WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); in fill_wep_pair() 37 msg->key_length = key->keylen; in fill_wep_pair() 38 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_pair() 44 struct ieee80211_key_conf *key) in fill_wep_group() 46 WARN(key in fill_wep_group() 33 fill_wep_pair(struct hif_wep_pairwise_key *msg, struct ieee80211_key_conf *key, u8 *peer_addr) fill_wep_pair() argument 43 fill_wep_group(struct hif_wep_group_key *msg, struct ieee80211_key_conf *key) fill_wep_group() argument 53 fill_tkip_pair(struct hif_tkip_pairwise_key *msg, struct ieee80211_key_conf *key, u8 *peer_addr) fill_tkip_pair() argument 70 fill_tkip_group(struct hif_tkip_group_key *msg, struct ieee80211_key_conf *key, struct ieee80211_key_seq *seq, enum nl80211_iftype iftype) fill_tkip_group() argument 95 fill_ccmp_pair(struct hif_aes_pairwise_key *msg, struct ieee80211_key_conf *key, u8 *peer_addr) fill_ccmp_pair() argument 104 fill_ccmp_group(struct hif_aes_group_key *msg, struct ieee80211_key_conf *key, struct ieee80211_key_seq *seq) fill_ccmp_group() argument 116 fill_sms4_pair(struct hif_wapi_pairwise_key *msg, struct ieee80211_key_conf *key, u8 *peer_addr) fill_sms4_pair() argument 131 fill_sms4_group(struct hif_wapi_group_key *msg, struct ieee80211_key_conf *key) fill_sms4_group() argument 145 fill_aes_cmac_group(struct hif_igtk_group_key *msg, struct ieee80211_key_conf *key, struct ieee80211_key_seq *seq) fill_aes_cmac_group() argument 157 wfx_add_key(struct wfx_vif *wvif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key) wfx_add_key() argument 219 wfx_remove_key(struct wfx_vif *wvif, struct ieee80211_key_conf *key) wfx_remove_key() argument 226 wfx_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key) wfx_set_key() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/silabs/wfx/ |
H A D | key.c | 11 #include "key.h" 29 WARN(!(wdev->key_map & BIT(idx)), "inconsistent key allocation"); in wfx_free_key() 34 struct ieee80211_key_conf *key, u8 *peer_addr) in fill_wep_pair() 36 WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); in fill_wep_pair() 37 msg->key_length = key->keylen; in fill_wep_pair() 38 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_pair() 44 struct ieee80211_key_conf *key) in fill_wep_group() 46 WARN(key in fill_wep_group() 33 fill_wep_pair(struct wfx_hif_wep_pairwise_key *msg, struct ieee80211_key_conf *key, u8 *peer_addr) fill_wep_pair() argument 43 fill_wep_group(struct wfx_hif_wep_group_key *msg, struct ieee80211_key_conf *key) fill_wep_group() argument 53 fill_tkip_pair(struct wfx_hif_tkip_pairwise_key *msg, struct ieee80211_key_conf *key, u8 *peer_addr) fill_tkip_pair() argument 69 fill_tkip_group(struct wfx_hif_tkip_group_key *msg, struct ieee80211_key_conf *key, struct ieee80211_key_seq *seq, enum nl80211_iftype iftype) fill_tkip_group() argument 90 fill_ccmp_pair(struct wfx_hif_aes_pairwise_key *msg, struct ieee80211_key_conf *key, u8 *peer_addr) fill_ccmp_pair() argument 99 fill_ccmp_group(struct wfx_hif_aes_group_key *msg, struct ieee80211_key_conf *key, struct ieee80211_key_seq *seq) fill_ccmp_group() argument 110 fill_sms4_pair(struct wfx_hif_wapi_pairwise_key *msg, struct ieee80211_key_conf *key, u8 *peer_addr) fill_sms4_pair() argument 125 fill_sms4_group(struct wfx_hif_wapi_group_key *msg, struct ieee80211_key_conf *key) fill_sms4_group() argument 139 fill_aes_cmac_group(struct wfx_hif_igtk_group_key *msg, struct ieee80211_key_conf *key, struct ieee80211_key_seq *seq) fill_aes_cmac_group() argument 150 wfx_add_key(struct wfx_vif *wvif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key) wfx_add_key() argument 207 wfx_remove_key(struct wfx_vif *wvif, struct ieee80211_key_conf *key) wfx_remove_key() argument 214 wfx_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key) wfx_set_key() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_tunnel_kern.c | 73 __type(key, __u32); 81 struct bpf_tunnel_key key; in gre_set_tunnel() local 83 __builtin_memset(&key, 0x0, sizeof(key)); in gre_set_tunnel() 84 key.remote_ipv4 = 0xac100164; /* 172.16.1.100 */ in gre_set_tunnel() 85 key.tunnel_id = 2; in gre_set_tunnel() 86 key.tunnel_tos = 0; in gre_set_tunnel() 87 key.tunnel_ttl = 64; in gre_set_tunnel() 89 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), in gre_set_tunnel() 103 struct bpf_tunnel_key key; gre_set_tunnel_no_key() local 124 struct bpf_tunnel_key key; gre_get_tunnel() local 139 struct bpf_tunnel_key key; ip6gretap_set_tunnel() local 163 struct bpf_tunnel_key key; ip6gretap_get_tunnel() local 182 struct bpf_tunnel_key key; erspan_set_tunnel() local 225 struct bpf_tunnel_key key; erspan_get_tunnel() local 260 struct bpf_tunnel_key key; ip4ip6erspan_set_tunnel() local 304 struct bpf_tunnel_key key; ip4ip6erspan_get_tunnel() local 340 struct bpf_tunnel_key key; vxlan_set_tunnel_dst() local 379 struct bpf_tunnel_key key; vxlan_set_tunnel_src() local 419 struct bpf_tunnel_key key; vxlan_get_tunnel_src() local 505 struct bpf_tunnel_key key; ip6vxlan_set_tunnel_dst() local 536 struct bpf_tunnel_key key; ip6vxlan_set_tunnel_src() local 567 struct bpf_tunnel_key key; ip6vxlan_get_tunnel_src() local 604 struct bpf_tunnel_key key; geneve_set_tunnel() local 642 struct bpf_tunnel_key key; geneve_get_tunnel() local 663 struct bpf_tunnel_key key; ip6geneve_set_tunnel() local 701 struct bpf_tunnel_key key; ip6geneve_get_tunnel() local 725 struct bpf_tunnel_key key = {}; ipip_set_tunnel() local 755 struct bpf_tunnel_key key; ipip_get_tunnel() local 770 struct bpf_tunnel_key key = {}; ipip_gue_set_tunnel() local 807 struct bpf_tunnel_key key = {}; ipip_fou_set_tunnel() local 845 struct bpf_tunnel_key key = {}; ipip_encap_get_tunnel() local 872 struct bpf_tunnel_key key = {}; ipip6_set_tunnel() local 904 struct bpf_tunnel_key key; ipip6_get_tunnel() local 921 struct bpf_tunnel_key key = {}; ip6ip6_set_tunnel() local 952 struct bpf_tunnel_key key; ip6ip6_get_tunnel() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_tunnel_kern.c | 49 struct bpf_tunnel_key key; in _gre_set_tunnel() local 51 __builtin_memset(&key, 0x0, sizeof(key)); in _gre_set_tunnel() 52 key.remote_ipv4 = 0xac100164; /* 172.16.1.100 */ in _gre_set_tunnel() 53 key.tunnel_id = 2; in _gre_set_tunnel() 54 key.tunnel_tos = 0; in _gre_set_tunnel() 55 key.tunnel_ttl = 64; in _gre_set_tunnel() 57 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), in _gre_set_tunnel() 71 struct bpf_tunnel_key key; in _gre_get_tunnel() local 87 struct bpf_tunnel_key key; _ip6gretap_set_tunnel() local 112 struct bpf_tunnel_key key; _ip6gretap_get_tunnel() local 131 struct bpf_tunnel_key key; _erspan_set_tunnel() local 175 struct bpf_tunnel_key key; _erspan_get_tunnel() local 215 struct bpf_tunnel_key key; _ip4ip6erspan_set_tunnel() local 260 struct bpf_tunnel_key key; _ip4ip6erspan_get_tunnel() local 302 struct bpf_tunnel_key key; _vxlan_set_tunnel() local 332 struct bpf_tunnel_key key; _vxlan_get_tunnel() local 357 struct bpf_tunnel_key key; _ip6vxlan_set_tunnel() local 380 struct bpf_tunnel_key key; _ip6vxlan_get_tunnel() local 400 struct bpf_tunnel_key key; _geneve_set_tunnel() local 438 struct bpf_tunnel_key key; _geneve_get_tunnel() local 460 struct bpf_tunnel_key key; _ip6geneve_set_tunnel() local 499 struct bpf_tunnel_key key; _ip6geneve_get_tunnel() local 523 struct bpf_tunnel_key key = {}; _ipip_set_tunnel() local 553 struct bpf_tunnel_key key; _ipip_get_tunnel() local 569 struct bpf_tunnel_key key = {}; _ipip6_set_tunnel() local 601 struct bpf_tunnel_key key; _ipip6_get_tunnel() local 619 struct bpf_tunnel_key key = {}; _ip6ip6_set_tunnel() local 650 struct bpf_tunnel_key key; _ip6ip6_get_tunnel() local [all...] |
/kernel/linux/linux-5.10/net/openvswitch/ |
H A D | flow.c | 242 static int parse_ipv6hdr(struct sk_buff *skb, struct sw_flow_key *key) in parse_ipv6hdr() argument 257 key->ip.proto = NEXTHDR_NONE; in parse_ipv6hdr() 258 key->ip.tos = ipv6_get_dsfield(nh); in parse_ipv6hdr() 259 key->ip.ttl = nh->hop_limit; in parse_ipv6hdr() 260 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); in parse_ipv6hdr() 261 key->ipv6.addr.src = nh->saddr; in parse_ipv6hdr() 262 key->ipv6.addr.dst = nh->daddr; in parse_ipv6hdr() 267 key->ip.frag = OVS_FRAG_TYPE_LATER; in parse_ipv6hdr() 268 key->ip.proto = NEXTHDR_FRAGMENT; in parse_ipv6hdr() 271 key in parse_ipv6hdr() 337 clear_vlan(struct sw_flow_key *key) clear_vlan() argument 345 parse_vlan(struct sk_buff *skb, struct sw_flow_key *key) parse_vlan() argument 405 parse_icmpv6(struct sk_buff *skb, struct sw_flow_key *key, int nh_len) parse_icmpv6() argument 479 parse_nsh(struct sk_buff *skb, struct sw_flow_key *key) parse_nsh() argument 532 key_extract_l3l4(struct sk_buff *skb, struct sw_flow_key *key) key_extract_l3l4() argument 764 key_extract(struct sk_buff *skb, struct sw_flow_key *key) key_extract() argument 820 ovs_flow_key_update_l3l4(struct sk_buff *skb, struct sw_flow_key *key) ovs_flow_key_update_l3l4() argument 825 ovs_flow_key_update(struct sk_buff *skb, struct sw_flow_key *key) ovs_flow_key_update() argument 850 ovs_flow_key_extract(const struct ip_tunnel_info *tun_info, struct sk_buff *skb, struct sw_flow_key *key) ovs_flow_key_extract() argument 907 ovs_flow_key_extract_userspace(struct net *net, const struct nlattr *attr, struct sk_buff *skb, struct sw_flow_key *key, bool log) ovs_flow_key_extract_userspace() argument [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | jump_label.c | 41 * Entrires are sorted by key. in jump_label_cmp() 72 jea->key = jeb->key - delta; in jump_label_swap() 76 jeb->key = tmp.key + delta; in jump_label_swap() 93 static void jump_label_update(struct static_key *key); 104 int static_key_count(struct static_key *key) in static_key_count() argument 110 int n = atomic_read(&key->enabled); in static_key_count() 117 * static_key_fast_inc_not_disabled - adds a user for a static key 118 * @key 127 static_key_fast_inc_not_disabled(struct static_key *key) static_key_fast_inc_not_disabled() argument 148 static_key_slow_inc_cpuslocked(struct static_key *key) static_key_slow_inc_cpuslocked() argument 181 static_key_slow_inc(struct static_key *key) static_key_slow_inc() argument 192 static_key_enable_cpuslocked(struct static_key *key) static_key_enable_cpuslocked() argument 215 static_key_enable(struct static_key *key) static_key_enable() argument 223 static_key_disable_cpuslocked(struct static_key *key) static_key_disable_cpuslocked() argument 240 static_key_disable(struct static_key *key) static_key_disable() argument 248 static_key_slow_try_dec(struct static_key *key) static_key_slow_try_dec() argument 267 __static_key_slow_dec_cpuslocked(struct static_key *key) __static_key_slow_dec_cpuslocked() argument 280 __static_key_slow_dec(struct static_key *key) __static_key_slow_dec() argument 289 struct static_key_deferred *key = jump_label_update_timeout() local 295 static_key_slow_dec(struct static_key *key) static_key_slow_dec() argument 302 static_key_slow_dec_cpuslocked(struct static_key *key) static_key_slow_dec_cpuslocked() argument 308 __static_key_slow_dec_deferred(struct static_key *key, struct delayed_work *work, unsigned long timeout) __static_key_slow_dec_deferred() argument 321 __static_key_deferred_flush(void *key, struct delayed_work *work) __static_key_deferred_flush() argument 328 jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl) jump_label_rate_limit() argument 371 static_key_entries(struct static_key *key) static_key_entries() argument 377 static_key_type(struct static_key *key) static_key_type() argument 382 static_key_linked(struct static_key *key) static_key_linked() argument 387 static_key_clear_linked(struct static_key *key) static_key_clear_linked() argument 392 static_key_set_linked(struct static_key *key) static_key_set_linked() argument 406 static_key_set_entries(struct static_key *key, struct jump_entry *entries) static_key_set_entries() argument 419 struct static_key *key = jump_entry_key(entry); jump_label_type() local 454 __jump_label_update(struct static_key *key, struct jump_entry *entry, struct jump_entry *stop, bool init) __jump_label_update() argument 465 __jump_label_update(struct static_key *key, struct jump_entry *entry, struct jump_entry *stop, bool init) __jump_label_update() argument 491 struct static_key *key = NULL; jump_label_init() local 537 struct static_key *key = jump_entry_key(entry); jump_label_init_type() local 551 static_key_mod(struct static_key *key) static_key_mod() argument 563 static_key_set_mod(struct static_key *key, struct static_key_mod *mod) static_key_set_mod() argument 598 __jump_label_mod_update(struct static_key *key) __jump_label_mod_update() argument 628 struct static_key *key = NULL; jump_label_add_module() local 690 struct static_key *key = NULL; jump_label_del_module() local 805 jump_label_update(struct static_key *key) jump_label_update() argument [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | jump_label.c | 41 * Entrires are sorted by key. in jump_label_cmp() 72 jea->key = jeb->key - delta; in jump_label_swap() 76 jeb->key = tmp.key + delta; in jump_label_swap() 93 static void jump_label_update(struct static_key *key); 104 int static_key_count(struct static_key *key) in static_key_count() argument 110 int n = atomic_read(&key->enabled); in static_key_count() 116 void static_key_slow_inc_cpuslocked(struct static_key *key) in static_key_slow_inc_cpuslocked() argument 120 STATIC_KEY_CHECK_USE(key); in static_key_slow_inc_cpuslocked() 156 static_key_slow_inc(struct static_key *key) static_key_slow_inc() argument 164 static_key_enable_cpuslocked(struct static_key *key) static_key_enable_cpuslocked() argument 187 static_key_enable(struct static_key *key) static_key_enable() argument 195 static_key_disable_cpuslocked(struct static_key *key) static_key_disable_cpuslocked() argument 212 static_key_disable(struct static_key *key) static_key_disable() argument 220 static_key_slow_try_dec(struct static_key *key) static_key_slow_try_dec() argument 239 __static_key_slow_dec_cpuslocked(struct static_key *key) __static_key_slow_dec_cpuslocked() argument 252 __static_key_slow_dec(struct static_key *key) __static_key_slow_dec() argument 261 struct static_key_deferred *key = jump_label_update_timeout() local 267 static_key_slow_dec(struct static_key *key) static_key_slow_dec() argument 274 static_key_slow_dec_cpuslocked(struct static_key *key) static_key_slow_dec_cpuslocked() argument 280 __static_key_slow_dec_deferred(struct static_key *key, struct delayed_work *work, unsigned long timeout) __static_key_slow_dec_deferred() argument 293 __static_key_deferred_flush(void *key, struct delayed_work *work) __static_key_deferred_flush() argument 300 jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl) jump_label_rate_limit() argument 347 static_key_entries(struct static_key *key) static_key_entries() argument 353 static_key_type(struct static_key *key) static_key_type() argument 358 static_key_linked(struct static_key *key) static_key_linked() argument 363 static_key_clear_linked(struct static_key *key) static_key_clear_linked() argument 368 static_key_set_linked(struct static_key *key) static_key_set_linked() argument 382 static_key_set_entries(struct static_key *key, struct jump_entry *entries) static_key_set_entries() argument 395 struct static_key *key = jump_entry_key(entry); jump_label_type() local 430 __jump_label_update(struct static_key *key, struct jump_entry *entry, struct jump_entry *stop, bool init) __jump_label_update() argument 441 __jump_label_update(struct static_key *key, struct jump_entry *entry, struct jump_entry *stop, bool init) __jump_label_update() argument 467 struct static_key *key = NULL; jump_label_init() local 512 struct static_key *key = jump_entry_key(entry); jump_label_init_type() local 526 static_key_mod(struct static_key *key) static_key_mod() argument 538 static_key_set_mod(struct static_key *key, struct static_key_mod *mod) static_key_set_mod() argument 573 __jump_label_mod_update(struct static_key *key) __jump_label_mod_update() argument 628 struct static_key *key = NULL; jump_label_add_module() local 689 struct static_key *key = NULL; jump_label_del_module() local 804 jump_label_update(struct static_key *key) jump_label_update() argument [all...] |
/kernel/linux/linux-5.10/net/mac80211/ |
H A D | key.c | 36 * each station key also belongs to that interface. 39 * that are implemented in software, for each key the hardware is asked 40 * to enable that key for offloading but if it cannot do that the key is 43 * There is currently no way of knowing whether a key is handled in SW 46 * All key management is internally protected by a mutex. Within all 47 * other parts of mac80211, key references are, just as STA structure 49 * unprotected, namely the key->sta dereferences within the hardware 51 * remove the key which waits for an RCU grace period. 87 * 1. SKB resize was skipped because no key wa in increment_tailroom_need_count() 125 ieee80211_key_enable_hw_accel(struct ieee80211_key *key) ieee80211_key_enable_hw_accel() argument 230 ieee80211_key_disable_hw_accel(struct ieee80211_key *key) ieee80211_key_disable_hw_accel() argument 265 _ieee80211_set_tx_key(struct ieee80211_key *key, bool force) _ieee80211_set_tx_key() argument 283 ieee80211_set_tx_key(struct ieee80211_key *key) ieee80211_set_tx_key() argument 350 struct ieee80211_key *key = NULL; __ieee80211_set_default_key() local 381 struct ieee80211_key *key = NULL; __ieee80211_set_default_mgmt_key() local 405 struct ieee80211_key *key = NULL; __ieee80211_set_default_beacon_key() local 537 struct ieee80211_key *key; ieee80211_key_alloc() local 700 ieee80211_key_free_common(struct ieee80211_key *key) ieee80211_key_free_common() argument 723 __ieee80211_key_destroy(struct ieee80211_key *key, bool delay_tailroom) __ieee80211_key_destroy() argument 744 ieee80211_key_destroy(struct ieee80211_key *key, bool delay_tailroom) ieee80211_key_destroy() argument 759 ieee80211_key_free_unused(struct ieee80211_key *key) ieee80211_key_free_unused() argument 798 ieee80211_key_link(struct ieee80211_key *key, struct ieee80211_sub_if_data *sdata, struct sta_info *sta) ieee80211_key_link() argument 877 ieee80211_key_free(struct ieee80211_key *key, bool delay_tailroom) ieee80211_key_free() argument 894 struct ieee80211_key *key; ieee80211_reenable_keys() local 921 ieee80211_iter_keys(struct ieee80211_hw *hw, struct ieee80211_vif *vif, void (*iter)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key, void *data), void *iter_data) ieee80211_iter_keys() argument 931 struct ieee80211_key *key, *tmp; ieee80211_iter_keys() local 956 _ieee80211_iter_keys_rcu(struct ieee80211_hw *hw, struct ieee80211_sub_if_data *sdata, void (*iter)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key, void *data), void *iter_data) _ieee80211_iter_keys_rcu() argument 965 struct ieee80211_key *key; _ieee80211_iter_keys_rcu() local 980 ieee80211_iter_keys_rcu(struct ieee80211_hw *hw, struct ieee80211_vif *vif, void (*iter)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key, void *data), void *iter_data) ieee80211_iter_keys_rcu() argument 1005 struct ieee80211_key *key, *tmp; ieee80211_free_keys_iface() local 1030 struct ieee80211_key *key, *tmp; ieee80211_free_keys() local 1075 struct ieee80211_key *key; ieee80211_free_sta_keys() local 1148 struct ieee80211_key *key; ieee80211_get_key_rx_seq() local 1201 struct ieee80211_key *key; ieee80211_set_key_rx_seq() local 1256 struct ieee80211_key *key; ieee80211_remove_key() local 1285 struct ieee80211_key *key; ieee80211_gtk_rekey_add() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | test_lru_map.c | 42 static int bpf_map_lookup_elem_with_ref_bit(int fd, unsigned long long key, in bpf_map_lookup_elem_with_ref_bit() argument 48 BPF_LD_IMM64(BPF_REG_3, key), in bpf_map_lookup_elem_with_ref_bit() 103 printf("key:%llu not found from map. %s(%d)\n", in map_subset() 108 printf("key:%llu value0:%llu != value1:%llu\n", in map_subset() 141 * Add key=1 (+1 key) 142 * Add key=2 (+1 key) 146 * Iterate map. Only found key=1 and key 150 unsigned long long key, value[nr_cpus]; test_lru_sanity0() local 241 unsigned long long key, end_key, value[nr_cpus]; test_lru_sanity1() local 317 unsigned long long key, value[nr_cpus]; test_lru_sanity2() local 424 unsigned long long key, end_key, value[nr_cpus]; test_lru_sanity3() local 489 unsigned long long key, value[nr_cpus]; test_lru_sanity4() local 547 unsigned long long key, value[nr_cpus]; do_test_lru_sanity5() local 564 unsigned long long key, value[nr_cpus]; test_lru_sanity5() local 612 unsigned long long key, value[nr_cpus]; test_lru_sanity6() local 678 unsigned long long key, value[nr_cpus]; test_lru_sanity7() local 769 unsigned long long key, value[nr_cpus]; test_lru_sanity8() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | key.h | 2 /* Authentication token and access key management 27 /* key handle serial number */ 30 /* key handle permissions mask */ 33 struct key; 40 #define KEY_POS_VIEW 0x01000000 /* possessor can view a key's attributes */ 41 #define KEY_POS_READ 0x02000000 /* possessor can read key payload / view keyring */ 42 #define KEY_POS_WRITE 0x04000000 /* possessor can update key payload / add link to keyring */ 43 #define KEY_POS_SEARCH 0x08000000 /* possessor can find a key in search / search a keyring */ 44 #define KEY_POS_LINK 0x10000000 /* possessor can create a link to a key/keyring */ 45 #define KEY_POS_SETATTR 0x20000000 /* possessor can set key attribute 149 make_key_ref(const struct key *key, bool possession) make_key_ref() argument 172 struct key *key; global() member 189 struct key { global() struct 300 __key_get(struct key *key) __key_get() argument 306 key_get(struct key *key) key_get() argument 433 key_serial(const struct key *key) key_serial() argument 444 key_read_state(const struct key *key) key_read_state() argument 457 key_is_positive(const struct key *key) key_is_positive() argument 462 key_is_negative(const struct key *key) key_is_negative() argument [all...] |
H A D | jump_label.h | 23 * DEFINE_STATIC_KEY_TRUE(key); 24 * DEFINE_STATIC_KEY_FALSE(key); 32 * define a "key" that is initially false via "DEFINE_STATIC_KEY_FALSE(key)", 33 * an "if (static_branch_unlikely(&key))" statement is an unconditional branch 35 * Similarly, we can define an initially true key via 36 * "DEFINE_STATIC_KEY_TRUE(key)", and use it in the same 37 * "if (static_branch_unlikely(&key))", in which case we will generate an 42 * At runtime we can change the branch target by setting the key 47 * initially false key tha 125 long key; // key may be far away from the core kernel under KASLR global() member 198 static_key_false(struct static_key *key) static_key_false() argument 203 static_key_true(struct static_key *key) static_key_true() argument 252 static_key_count(struct static_key *key) static_key_count() argument 262 static_key_false(struct static_key *key) static_key_false() argument 269 static_key_true(struct static_key *key) static_key_true() argument 276 static_key_slow_inc(struct static_key *key) static_key_slow_inc() argument 282 static_key_slow_dec(struct static_key *key) static_key_slow_dec() argument 304 static_key_enable(struct static_key *key) static_key_enable() argument 315 static_key_disable(struct static_key *key) static_key_disable() argument 347 struct static_key key; global() member 351 struct static_key key; global() member [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | key.h | 2 /* Authentication token and access key management 27 /* key handle serial number */ 30 /* key handle permissions mask */ 33 struct key; 40 #define KEY_POS_VIEW 0x01000000 /* possessor can view a key's attributes */ 41 #define KEY_POS_READ 0x02000000 /* possessor can read key payload / view keyring */ 42 #define KEY_POS_WRITE 0x04000000 /* possessor can update key payload / add link to keyring */ 43 #define KEY_POS_SEARCH 0x08000000 /* possessor can find a key in search / search a keyring */ 44 #define KEY_POS_LINK 0x10000000 /* possessor can create a link to a key/keyring */ 45 #define KEY_POS_SETATTR 0x20000000 /* possessor can set key attribute 155 make_key_ref(const struct key *key, bool possession) make_key_ref() argument 178 struct key *key; global() member 195 struct key { global() struct 306 __key_get(struct key *key) __key_get() argument 312 key_get(struct key *key) key_get() argument 447 key_serial(const struct key *key) key_serial() argument 458 key_read_state(const struct key *key) key_read_state() argument 471 key_is_positive(const struct key *key) key_is_positive() argument 476 key_is_negative(const struct key *key) key_is_negative() argument [all...] |
H A D | jump_label.h | 23 * DEFINE_STATIC_KEY_TRUE(key); 24 * DEFINE_STATIC_KEY_FALSE(key); 32 * define a "key" that is initially false via "DEFINE_STATIC_KEY_FALSE(key)", 33 * an "if (static_branch_unlikely(&key))" statement is an unconditional branch 35 * Similarly, we can define an initially true key via 36 * "DEFINE_STATIC_KEY_TRUE(key)", and use it in the same 37 * "if (static_branch_unlikely(&key))", in which case we will generate an 42 * At runtime we can change the branch target by setting the key 47 * initially false key tha 120 long key; // key may be far away from the core kernel under KASLR global() member 205 static_key_false(struct static_key *key) static_key_false() argument 210 static_key_true(struct static_key *key) static_key_true() argument 258 static_key_count(struct static_key *key) static_key_count() argument 268 static_key_false(struct static_key *key) static_key_false() argument 275 static_key_true(struct static_key *key) static_key_true() argument 282 static_key_fast_inc_not_disabled(struct static_key *key) static_key_fast_inc_not_disabled() argument 300 static_key_slow_dec(struct static_key *key) static_key_slow_dec() argument 317 static_key_enable(struct static_key *key) static_key_enable() argument 328 static_key_disable(struct static_key *key) static_key_disable() argument 360 struct static_key key; global() member 364 struct static_key key; global() member [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_lru_map.c | 42 static int bpf_map_lookup_elem_with_ref_bit(int fd, unsigned long long key, in bpf_map_lookup_elem_with_ref_bit() argument 50 BPF_LD_IMM64(BPF_REG_3, key), in bpf_map_lookup_elem_with_ref_bit() 114 printf("key:%llu not found from map. %s(%d)\n", in map_subset() 119 printf("key:%llu value0:%llu != value1:%llu\n", in map_subset() 152 * Add key=1 (+1 key) 153 * Add key=2 (+1 key) 157 * Iterate map. Only found key=1 and key 161 unsigned long long key, value[nr_cpus]; test_lru_sanity0() local 250 unsigned long long key, end_key, value[nr_cpus]; test_lru_sanity1() local 326 unsigned long long key, value[nr_cpus]; test_lru_sanity2() local 434 unsigned long long key, end_key, value[nr_cpus]; test_lru_sanity3() local 499 unsigned long long key, value[nr_cpus]; test_lru_sanity4() local 557 unsigned long long key, value[nr_cpus]; do_test_lru_sanity5() local 575 unsigned long long key, value[nr_cpus]; test_lru_sanity5() local 623 unsigned long long key, value[nr_cpus]; test_lru_sanity6() local 689 unsigned long long key, value[nr_cpus]; test_lru_sanity7() local 785 unsigned long long key, value[nr_cpus]; test_lru_sanity8() local [all...] |
/kernel/linux/linux-6.6/drivers/s390/crypto/ |
H A D | zcrypt_cca_key.h | 21 * mapping for the cca private ME key token. 25 * mapping for the cca key token header 40 * In a private key, the modulus doesn't appear in the public 51 unsigned short modulus_byte_len; /* In a private key, this is 0 */ 55 * mapping for the cca private CRT key 'token' 92 * Set up private key fields of a type6 MEX message. 95 * @p: pointer to memory area for the key 97 * Returns the size of the key area or negative errno value. 112 } __packed *key = p; in zcrypt_type6_mex_key_en() local 124 memset(key, in zcrypt_type6_mex_key_en() 172 } __packed *key = p; zcrypt_type6_crt_key() local [all...] |
/kernel/linux/linux-6.6/security/selinux/ss/ |
H A D | avtab.c | 71 const struct avtab_key *key, const struct avtab_datum *datum) in avtab_insert_node() 78 newnode->key = *key; in avtab_insert_node() 80 if (key->specified & AVTAB_XPERMS) { in avtab_insert_node() 106 static int avtab_insert(struct avtab *h, const struct avtab_key *key, in avtab_insert() argument 111 u16 specified = key->specified & ~(AVTAB_ENABLED|AVTAB_ENABLED_OLD); in avtab_insert() 116 hvalue = avtab_hash(key, h->mask); in avtab_insert() 120 if (key->source_type == cur->key.source_type && in avtab_insert() 121 key in avtab_insert() 69 avtab_insert_node(struct avtab *h, u32 hvalue, struct avtab_node *prev, const struct avtab_key *key, const struct avtab_datum *datum) avtab_insert_node() argument 151 avtab_insert_nonunique(struct avtab *h, const struct avtab_key *key, const struct avtab_datum *datum) avtab_insert_nonunique() argument 186 avtab_search_node(struct avtab *h, const struct avtab_key *key) avtab_search_node() argument 378 struct avtab_key key; avtab_read_item() local [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | test_static_keys.c | 37 struct static_key *key; member 41 #define test_key_func(key, branch) \ 42 static bool key ## _ ## branch(void) \ 44 return branch(&key); \ 47 static void invert_key(struct static_key *key) in invert_key() argument 49 if (static_key_enabled(key)) in invert_key() 50 static_key_disable(key); in invert_key() 52 static_key_enable(key); in invert_key() 61 if (previous != keys[i].key) { in invert_keys() 62 invert_key(keys[i].key); in invert_keys() [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | test_static_keys.c | 37 struct static_key *key; member 41 #define test_key_func(key, branch) \ 42 static bool key ## _ ## branch(void) \ 44 return branch(&key); \ 47 static void invert_key(struct static_key *key) in invert_key() argument 49 if (static_key_enabled(key)) in invert_key() 50 static_key_disable(key); in invert_key() 52 static_key_enable(key); in invert_key() 61 if (previous != keys[i].key) { in invert_keys() 62 invert_key(keys[i].key); in invert_keys() [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | rsa_helper.c | 3 * RSA key extract helper 19 struct rsa_key *key = context; in rsa_get_n() local 23 /* invalid key provided */ in rsa_get_n() 33 /* In FIPS mode only allow key size 2K and higher */ in rsa_get_n() 35 pr_err("RSA: key size not allowed in FIPS mode\n"); in rsa_get_n() 40 key->n = value; in rsa_get_n() 41 key->n_sz = vlen; in rsa_get_n() 49 struct rsa_key *key = context; in rsa_get_e() local 51 /* invalid key provided */ in rsa_get_e() 52 if (!value || !key in rsa_get_e() 64 struct rsa_key *key = context; rsa_get_d() local 79 struct rsa_key *key = context; rsa_get_p() local 94 struct rsa_key *key = context; rsa_get_q() local 109 struct rsa_key *key = context; rsa_get_dp() local 124 struct rsa_key *key = context; rsa_get_dq() local 139 struct rsa_key *key = context; rsa_get_qinv() local 162 rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, unsigned int key_len) rsa_parse_pub_key() argument 181 rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key, unsigned int key_len) rsa_parse_priv_key() argument [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | rsa_helper.c | 3 * RSA key extract helper 19 struct rsa_key *key = context; in rsa_get_n() local 23 /* invalid key provided */ in rsa_get_n() 33 /* In FIPS mode only allow key size 2K and higher */ in rsa_get_n() 35 pr_err("RSA: key size not allowed in FIPS mode\n"); in rsa_get_n() 40 key->n = value; in rsa_get_n() 41 key->n_sz = vlen; in rsa_get_n() 49 struct rsa_key *key = context; in rsa_get_e() local 51 /* invalid key provided */ in rsa_get_e() 52 if (!value || !key in rsa_get_e() 64 struct rsa_key *key = context; rsa_get_d() local 79 struct rsa_key *key = context; rsa_get_p() local 94 struct rsa_key *key = context; rsa_get_q() local 109 struct rsa_key *key = context; rsa_get_dp() local 124 struct rsa_key *key = context; rsa_get_dq() local 139 struct rsa_key *key = context; rsa_get_qinv() local 162 rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, unsigned int key_len) rsa_parse_pub_key() argument 181 rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key, unsigned int key_len) rsa_parse_priv_key() argument [all...] |