Home
last modified time | relevance | path

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

123456

/linux-6.1.9/scripts/coccinelle/api/
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)"
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
/linux-6.1.9/security/keys/trusted-keys/
Dtrusted_core.c208 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/
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()
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()
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()
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()
/linux-6.1.9/security/apparmor/
Dpolicy.c190 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/
Dkfree.cocci27 kfree_sensitive@p1(E)
71 kfree_sensitive@ok(E)
89 kfree_sensitive@p1(E,...)
Difnullfree.cocci26 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/
Dsun8i-ss-prng.c23 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/
Decdh_helper.c107 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/
Dcaampkc.c861 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/
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()
/linux-6.1.9/drivers/nvme/common/
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()
/linux-6.1.9/net/mac802154/
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()
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/
Dauth.c223 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/
Dgss_krb5_keys.c231 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/
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()
/linux-6.1.9/net/mac80211/
Daead_api.c45 kfree_sensitive(aead_req); in aead_encrypt()
80 kfree_sensitive(aead_req); in aead_decrypt()
/linux-6.1.9/crypto/
Dalgif_rng.c68 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/
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()
/linux-6.1.9/drivers/nvme/target/
Dauth.c103 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/
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()
/linux-6.1.9/security/keys/encrypted-keys/
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()
/linux-6.1.9/drivers/crypto/amlogic/
Damlogic-gxl-cipher.c255 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()

123456