/openbmc/linux/scripts/coccinelle/api/ |
H A D | kfree_sensitive.cocci | 3 /// 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 D | kfree_mismatch.cocci | 102 * \(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 D | trusted_core.c | 207 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 D | dh.c | 62 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 D | user_defined.c | 85 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 D | big_key.c | 143 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 D | ecdh_helper.c | 86 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 D | gss_krb5_keys.c | 216 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 D | kfree.cocci | 27 kfree_sensitive@p1(E) 71 kfree_sensitive@ok(E) 89 kfree_sensitive@p1(E,...)
|
H A D | ifnullfree.cocci | 26 kfree_sensitive(E); 51 * \(kfree@p\|kvfree@p\|kfree_sensitive@p\|kvfree_sensitive@p\|vfree@p\|
|
/openbmc/linux/security/apparmor/ |
H A D | policy.c | 192 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 D | sun8i-ss-prng.c | 25 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 D | sun8i-ce-prng.c | 29 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 D | caampkc.c | 868 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 D | auth.c | 216 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 D | llsec.c | 52 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 D | aead_api.c | 45 kfree_sensitive(aead_req); in aead_encrypt() 80 kfree_sensitive(aead_req); in aead_decrypt()
|
/openbmc/linux/drivers/crypto/cavium/zip/ |
H A D | zip_crypto.c | 251 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 D | mpiutil.c | 129 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 D | algif_rng.c | 68 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 D | public_key.c | 45 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 D | auth.c | 103 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 D | cptvf_reqmanager.c | 304 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 D | amlogic-gxl-cipher.c | 255 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 D | encrypted.c | 379 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()
|