Home
last modified time | relevance | path

Searched refs:kfree_sensitive (Results 1 – 25 of 153) sorted by relevance

1234567

/openbmc/linux/scripts/coccinelle/api/
H A Dkfree_sensitive.cocci3 /// Use kfree_sensitive, kvfree_sensitive rather than memset or
10 // Keywords: kfree_sensitive, kvfree_sensitive
22 'kfree_sensitive', 'kvfree_sensitive'])
62 + kfree_sensitive(E);
80 + kfree_sensitive(E);
91 msg = "WARNING opportunity for kfree_sensitive/kvfree_sensitive (memset at line %s)"
99 msg = "WARNING opportunity for kfree_sensitive/kvfree_sensitive (memset at line %s)"
H A Dkfree_mismatch.cocci102 * \(kfree\|kfree_sensitive\|kvfree\)(E)@f
127 * \(kfree\|kfree_sensitive\|vfree\|vfree_atomic\)(E)@f
147 * \(kfree\|kfree_sensitive\|vfree\|vfree_atomic\)(E)@f
160 - kfree_sensitive(E)@f
/openbmc/linux/security/keys/trusted-keys/
H A Dtrusted_core.c207 kfree_sensitive(orig_datablob); in trusted_instantiate()
211 kfree_sensitive(payload); in trusted_instantiate()
220 kfree_sensitive(p); in trusted_rcu_free()
257 kfree_sensitive(new_p); in trusted_update()
271 kfree_sensitive(new_p); in trusted_update()
278 kfree_sensitive(orig_datablob); in trusted_update()
310 kfree_sensitive(key->payload.data[0]); in trusted_destroy()
/openbmc/linux/security/keys/
H A Ddh.c62 kfree_sensitive(dh->key); in dh_free_data()
63 kfree_sensitive(dh->p); in dh_free_data()
64 kfree_sensitive(dh->g); in dh_free_data()
118 kfree_sensitive(outbuf); in keyctl_dh_compute_kdf()
288 kfree_sensitive(outbuf); in __keyctl_dh_compute()
292 kfree_sensitive(secret); in __keyctl_dh_compute()
H A Duser_defined.c85 kfree_sensitive(prep->payload.data[0]); in user_free_preparse()
94 kfree_sensitive(payload); in user_free_payload_rcu()
150 kfree_sensitive(upayload); in user_destroy()
H A Dbig_key.c143 kfree_sensitive(enckey); in big_key_preparse()
158 kfree_sensitive(payload->data); in big_key_free_preparse()
187 kfree_sensitive(payload->data); in big_key_destroy()
/openbmc/linux/net/bluetooth/
H A Decdh_helper.c86 kfree_sensitive(tmp); in compute_ecdh_secret()
131 kfree_sensitive(buf); in set_ecdh_privkey()
133 kfree_sensitive(tmp); in set_ecdh_privkey()
/openbmc/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_keys.c216 kfree_sensitive(outblockdata); in krb5_DK()
218 kfree_sensitive(inblockdata); in krb5_DK()
285 kfree_sensitive(inblock.data); in krb5_derive_key_v2()
427 kfree_sensitive(step.data); in krb5_kdf_feedback_cmac()
428 kfree_sensitive(DR.data); in krb5_kdf_feedback_cmac()
542 kfree_sensitive(K1.data); in krb5_kdf_hmac_sha2()
/openbmc/linux/scripts/coccinelle/free/
H A Dkfree.cocci27 kfree_sensitive@p1(E)
71 kfree_sensitive@ok(E)
89 kfree_sensitive@p1(E,...)
H A Difnullfree.cocci26 kfree_sensitive(E);
51 * \(kfree@p\|kvfree@p\|kfree_sensitive@p\|kvfree_sensitive@p\|vfree@p\|
/openbmc/linux/security/apparmor/
H A Dpolicy.c192 kfree_sensitive(data->key); in aa_free_data()
193 kfree_sensitive(data); in aa_free_data()
201 kfree_sensitive(attach->xattrs[i]); in free_attachment()
202 kfree_sensitive(attach->xattrs); in free_attachment()
217 kfree_sensitive(rules->secmark); in free_ruleset()
218 kfree_sensitive(rules); in free_ruleset()
257 kfree_sensitive(profile->rename); in aa_free_profile()
270 kfree_sensitive(profile->dirname); in aa_free_profile()
276 kfree_sensitive(rht); in aa_free_profile()
279 kfree_sensitive(profile->hash); in aa_free_profile()
[all …]
/openbmc/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-prng.c25 kfree_sensitive(ctx->seed); in sun8i_ss_prng_seed()
52 kfree_sensitive(ctx->seed); in sun8i_ss_prng_exit()
174 kfree_sensitive(d); in sun8i_ss_prng_generate()
/openbmc/linux/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-prng.c29 kfree_sensitive(ctx->seed); in sun8i_ce_prng_exit()
40 kfree_sensitive(ctx->seed); in sun8i_ce_prng_seed()
157 kfree_sensitive(d); in sun8i_ce_prng_generate()
/openbmc/linux/drivers/crypto/caam/
H A Dcaampkc.c868 kfree_sensitive(key->d); in caam_rsa_free_key()
869 kfree_sensitive(key->p); in caam_rsa_free_key()
870 kfree_sensitive(key->q); in caam_rsa_free_key()
871 kfree_sensitive(key->dp); in caam_rsa_free_key()
872 kfree_sensitive(key->dq); in caam_rsa_free_key()
873 kfree_sensitive(key->qinv); in caam_rsa_free_key()
874 kfree_sensitive(key->tmp1); in caam_rsa_free_key()
875 kfree_sensitive(key->tmp2); in caam_rsa_free_key()
1035 kfree_sensitive(rsa_key->dq); in caam_rsa_set_priv_key_form()
1043 kfree_sensitive(rsa_key->q); in caam_rsa_set_priv_key_form()
[all …]
/openbmc/linux/drivers/nvme/common/
H A Dauth.c216 kfree_sensitive(key->key); in nvme_auth_extract_key()
227 kfree_sensitive(key->key); in nvme_auth_free_key()
295 kfree_sensitive(transformed_key); in nvme_auth_transform_key()
384 kfree_sensitive(desc); in nvme_auth_augmented_challenge()
388 kfree_sensitive(hashed_key); in nvme_auth_augmented_challenge()
/openbmc/linux/net/mac802154/
H A Dllsec.c52 kfree_sensitive(msl); in mac802154_llsec_destroy()
69 kfree_sensitive(key); in mac802154_llsec_destroy()
158 kfree_sensitive(key); in llsec_key_alloc()
173 kfree_sensitive(key); in llsec_key_release()
264 kfree_sensitive(new); in mac802154_llsec_key_add()
277 kfree_sensitive(pos); in mac802154_llsec_key_del_rcu()
352 kfree_sensitive(devkey); in llsec_dev_free()
355 kfree_sensitive(dev); in llsec_dev_free()
693 kfree_sensitive(req); in llsec_do_encrypt_auth()
900 kfree_sensitive(req); in llsec_do_decrypt_auth()
[all …]
/openbmc/linux/net/mac80211/
H A Daead_api.c45 kfree_sensitive(aead_req); in aead_encrypt()
80 kfree_sensitive(aead_req); in aead_decrypt()
/openbmc/linux/drivers/crypto/cavium/zip/
H A Dzip_crypto.c251 kfree_sensitive(zip_ctx); in zip_alloc_scomp_ctx_deflate()
270 kfree_sensitive(zip_ctx); in zip_alloc_scomp_ctx_lzs()
282 kfree_sensitive(zip_ctx); in zip_free_scomp_ctx()
/openbmc/linux/lib/crypto/mpi/
H A Dmpiutil.c129 kfree_sensitive(a); in mpi_free_limb_space()
155 kfree_sensitive(a->d); in mpi_resize()
181 kfree_sensitive(a->d); in mpi_free()
/openbmc/linux/crypto/
H A Dalgif_rng.c68 kfree_sensitive(ctx->addtl); in rng_reset_addtl()
226 kfree_sensitive(pctx->entropy); in rng_release()
227 kfree_sensitive(pctx); in rng_release()
/openbmc/linux/crypto/asymmetric_keys/
H A Dpublic_key.c45 kfree_sensitive(key->key); in public_key_free()
265 kfree_sensitive(key); in software_key_query()
371 kfree_sensitive(key); in software_key_eds_op()
443 kfree_sensitive(key); in public_key_verify_signature()
/openbmc/linux/drivers/nvme/target/
H A Dauth.c103 kfree_sensitive(ctrl->dh_key); in nvmet_setup_dhgroup()
108 kfree_sensitive(ctrl->dh_key); in nvmet_setup_dhgroup()
243 kfree_sensitive(ctrl->dh_key); in nvmet_destroy_auth()
370 kfree_sensitive(host_response); in nvmet_auth_host_hash()
480 kfree_sensitive(ctrl_response); in nvmet_auth_ctrl_hash()
/openbmc/linux/drivers/crypto/cavium/cpt/
H A Dcptvf_reqmanager.c304 kfree_sensitive(info->scatter_components); in do_request_cleanup()
305 kfree_sensitive(info->gather_components); in do_request_cleanup()
306 kfree_sensitive(info->out_buffer); in do_request_cleanup()
307 kfree_sensitive(info->in_buffer); in do_request_cleanup()
308 kfree_sensitive((void *)info->completion_addr); in do_request_cleanup()
309 kfree_sensitive(info); in do_request_cleanup()
/openbmc/linux/drivers/crypto/amlogic/
H A Damlogic-gxl-cipher.c255 kfree_sensitive(bkeyiv); in meson_cipher()
256 kfree_sensitive(backup_iv); in meson_cipher()
340 kfree_sensitive(op->key); in meson_cipher_exit()
364 kfree_sensitive(op->key); in meson_aes_setkey()
/openbmc/linux/security/keys/encrypted-keys/
H A Dencrypted.c379 kfree_sensitive(derived_buf); in get_derived_key()
848 kfree_sensitive(epayload); in encrypted_instantiate()
854 kfree_sensitive(datablob); in encrypted_instantiate()
863 kfree_sensitive(epayload); in encrypted_rcu_free()
921 kfree_sensitive(buf); in encrypted_update()
982 kfree_sensitive(ascii_buf); in encrypted_read()
997 kfree_sensitive(key->payload.data[0]); in encrypted_destroy()

1234567