/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
|
/linux/drivers/s390/crypto/ |
H A D | pkey_api.c | 204 kfree_sensitive(tmpbuf); in pkey_ioctl_clr2protk() 360 kfree_sensitive(tmpbuf); in pkey_ioctl_verifyprotk() 382 kfree_sensitive(kkey); in pkey_ioctl_kblob2protk() 421 kfree_sensitive(kkey); in pkey_ioctl_genseck2() 426 kfree_sensitive(kkey); in pkey_ioctl_genseck2() 430 kfree_sensitive(kkey); in pkey_ioctl_genseck2() 437 kfree_sensitive(kkey); in pkey_ioctl_genseck2() 478 kfree_sensitive(kkey); in pkey_ioctl_clr2seck2() 484 kfree_sensitive(kkey); in pkey_ioctl_clr2seck2() 489 kfree_sensitive(kkey); in pkey_ioctl_clr2seck2() [all …]
|
/linux/security/keys/trusted-keys/ |
H A D | trusted_core.c | 211 kfree_sensitive(orig_datablob); in trusted_instantiate() 215 kfree_sensitive(payload); in trusted_instantiate() 224 kfree_sensitive(p); in trusted_rcu_free() 261 kfree_sensitive(new_p); in trusted_update() 275 kfree_sensitive(new_p); in trusted_update() 282 kfree_sensitive(orig_datablob); in trusted_update() 314 kfree_sensitive(key->payload.data[0]); in trusted_destroy()
|
H A D | trusted_tpm1.c | 64 kfree_sensitive(sdesc); in TSS_sha1() 108 kfree_sensitive(sdesc); in TSS_rawhmac() 162 kfree_sensitive(sdesc); in TSS_authhmac() 247 kfree_sensitive(sdesc); in TSS_checkhmac1() 349 kfree_sensitive(sdesc); in TSS_checkhmac2() 579 kfree_sensitive(td); in tpm_seal() 940 kfree_sensitive(options); in trusted_tpm_seal() 983 kfree_sensitive(options); in trusted_tpm_unseal()
|
/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()
|
/linux/lib/crypto/mpi/ |
H A D | mpiutil.c | 72 kfree_sensitive(a); in mpi_free_limb_space() 98 kfree_sensitive(a->d); in mpi_resize() 115 kfree_sensitive(a->d); in mpi_free()
|
/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()
|
/linux/security/apparmor/ |
H A D | policy.c | 229 kfree_sensitive(data->key); in aa_free_data() 230 kfree_sensitive(data); in aa_free_data() 238 kfree_sensitive(attach->xattrs[i]); in free_attachment() 239 kfree_sensitive(attach->xattrs); in free_attachment() 253 kfree_sensitive(rules->secmark[i].label); in free_ruleset() 254 kfree_sensitive(rules->secmark); in free_ruleset() 255 kfree_sensitive(rules); in free_ruleset() 294 kfree_sensitive(profile->rename); in aa_free_profile() 295 kfree_sensitive(profile->disconnected); in aa_free_profile() 307 kfree_sensitive(profile->dirname); in aa_free_profile() [all …]
|
/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() 1037 kfree_sensitive(rsa_key->dp); in caam_rsa_set_priv_key_form() [all …]
|
/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()
|
/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\|
|
/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()
|
/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()
|
/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 …]
|
/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()
|
/linux/crypto/asymmetric_keys/ |
H A D | public_key.c | 45 kfree_sensitive(key->key); in public_key_free() 273 kfree_sensitive(key); in software_key_query() 379 kfree_sensitive(key); in software_key_eds_op() 451 kfree_sensitive(key); in public_key_verify_signature()
|
/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()
|
/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()
|
/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()
|
/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()
|
/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()
|