/linux-6.1.9/scripts/coccinelle/api/ |
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)"
|
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-6.1.9/security/keys/trusted-keys/ |
D | trusted_core.c | 208 kfree_sensitive(orig_datablob); in trusted_instantiate() 212 kfree_sensitive(payload); in trusted_instantiate() 221 kfree_sensitive(p); in trusted_rcu_free() 258 kfree_sensitive(new_p); in trusted_update() 272 kfree_sensitive(new_p); in trusted_update() 279 kfree_sensitive(orig_datablob); in trusted_update() 311 kfree_sensitive(key->payload.data[0]); in trusted_destroy()
|
/linux-6.1.9/security/keys/ |
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() 134 kfree_sensitive(outbuf); in keyctl_dh_compute_kdf() 308 kfree_sensitive(outbuf); in __keyctl_dh_compute() 312 kfree_sensitive(secret); in __keyctl_dh_compute()
|
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()
|
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-6.1.9/security/apparmor/ |
D | policy.c | 190 kfree_sensitive(data->data); in aa_free_data() 191 kfree_sensitive(data->key); in aa_free_data() 192 kfree_sensitive(data); in aa_free_data() 220 kfree_sensitive(profile->rename); in aa_free_profile() 227 kfree_sensitive(profile->xattrs[i]); in aa_free_profile() 228 kfree_sensitive(profile->xattrs); in aa_free_profile() 230 kfree_sensitive(profile->secmark[i].label); in aa_free_profile() 231 kfree_sensitive(profile->secmark); in aa_free_profile() 232 kfree_sensitive(profile->dirname); in aa_free_profile() 240 kfree_sensitive(rht); in aa_free_profile() [all …]
|
/linux-6.1.9/scripts/coccinelle/free/ |
D | kfree.cocci | 27 kfree_sensitive@p1(E) 71 kfree_sensitive@ok(E) 89 kfree_sensitive@p1(E,...)
|
D | ifnullfree.cocci | 26 kfree_sensitive(E); 51 * \(kfree@p\|kvfree@p\|kfree_sensitive@p\|kvfree_sensitive@p\|vfree@p\|
|
/linux-6.1.9/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-prng.c | 23 kfree_sensitive(ctx->seed); in sun8i_ss_prng_seed() 50 kfree_sensitive(ctx->seed); in sun8i_ss_prng_exit() 167 kfree_sensitive(d); in sun8i_ss_prng_generate()
|
/linux-6.1.9/net/bluetooth/ |
D | ecdh_helper.c | 107 kfree_sensitive(tmp); in compute_ecdh_secret() 152 kfree_sensitive(buf); in set_ecdh_privkey() 154 kfree_sensitive(tmp); in set_ecdh_privkey()
|
/linux-6.1.9/drivers/crypto/caam/ |
D | caampkc.c | 861 kfree_sensitive(key->d); in caam_rsa_free_key() 862 kfree_sensitive(key->p); in caam_rsa_free_key() 863 kfree_sensitive(key->q); in caam_rsa_free_key() 864 kfree_sensitive(key->dp); in caam_rsa_free_key() 865 kfree_sensitive(key->dq); in caam_rsa_free_key() 866 kfree_sensitive(key->qinv); in caam_rsa_free_key() 867 kfree_sensitive(key->tmp1); in caam_rsa_free_key() 868 kfree_sensitive(key->tmp2); in caam_rsa_free_key() 1025 kfree_sensitive(rsa_key->dq); in caam_rsa_set_priv_key_form() 1027 kfree_sensitive(rsa_key->dp); in caam_rsa_set_priv_key_form() [all …]
|
/linux-6.1.9/drivers/crypto/allwinner/sun8i-ce/ |
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-6.1.9/drivers/nvme/common/ |
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()
|
/linux-6.1.9/net/mac802154/ |
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() 344 kfree_sensitive(devkey); in llsec_dev_free() 347 kfree_sensitive(dev); in llsec_dev_free() 685 kfree_sensitive(req); in llsec_do_encrypt_auth() 889 kfree_sensitive(req); in llsec_do_decrypt_auth() 929 kfree_sensitive(next); in llsec_update_devkey_record()
|
/linux-6.1.9/drivers/nvme/host/ |
D | auth.c | 223 kfree_sensitive(chap->host_key); in nvme_auth_process_dhchap_challenge() 226 kfree_sensitive(chap->ctrl_key); in nvme_auth_process_dhchap_challenge() 646 kfree_sensitive(chap->sess_key); in nvme_auth_dhchap_exponential() 659 kfree_sensitive(chap->host_response); in __nvme_auth_reset() 661 kfree_sensitive(chap->host_key); in __nvme_auth_reset() 664 kfree_sensitive(chap->ctrl_key); in __nvme_auth_reset() 667 kfree_sensitive(chap->sess_key); in __nvme_auth_reset() 686 kfree_sensitive(chap->ctrl_key); in __nvme_auth_free() 687 kfree_sensitive(chap->host_key); in __nvme_auth_free() 688 kfree_sensitive(chap->sess_key); in __nvme_auth_free() [all …]
|
/linux-6.1.9/net/sunrpc/auth_gss/ |
D | gss_krb5_keys.c | 231 kfree_sensitive(rawkey); in krb5_derive_key() 233 kfree_sensitive(outblockdata); in krb5_derive_key() 235 kfree_sensitive(inblockdata); in krb5_derive_key()
|
/linux-6.1.9/drivers/crypto/cavium/zip/ |
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-6.1.9/net/mac80211/ |
D | aead_api.c | 45 kfree_sensitive(aead_req); in aead_encrypt() 80 kfree_sensitive(aead_req); in aead_decrypt()
|
/linux-6.1.9/crypto/ |
D | algif_rng.c | 68 kfree_sensitive(ctx->addtl); in rng_reset_addtl() 228 kfree_sensitive(pctx->entropy); in rng_release() 229 kfree_sensitive(pctx); in rng_release()
|
/linux-6.1.9/lib/mpi/ |
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()
|
/linux-6.1.9/drivers/nvme/target/ |
D | auth.c | 103 kfree_sensitive(ctrl->dh_key); in nvmet_setup_dhgroup() 107 kfree_sensitive(ctrl->dh_key); in nvmet_setup_dhgroup() 242 kfree_sensitive(ctrl->dh_key); in nvmet_destroy_auth() 368 kfree_sensitive(host_response); in nvmet_auth_host_hash() 477 kfree_sensitive(ctrl_response); in nvmet_auth_ctrl_hash()
|
/linux-6.1.9/drivers/crypto/cavium/cpt/ |
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-6.1.9/security/keys/encrypted-keys/ |
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-6.1.9/drivers/crypto/amlogic/ |
D | amlogic-gxl-cipher.c | 255 kfree_sensitive(bkeyiv); in meson_cipher() 256 kfree_sensitive(backup_iv); in meson_cipher() 345 kfree_sensitive(op->key); in meson_cipher_exit() 369 kfree_sensitive(op->key); in meson_aes_setkey()
|