Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/security/keys/
Ddh.c61 kfree_sensitive(dh->key); in dh_free_data()
62 kfree_sensitive(dh->p); in dh_free_data()
63 kfree_sensitive(dh->g); in dh_free_data()
129 kfree_sensitive(sdesc); in kdf_dealloc()
223 kfree_sensitive(outbuf); in keyctl_dh_compute_kdf()
398 kfree_sensitive(outbuf); in __keyctl_dh_compute()
402 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.c141 kfree_sensitive(enckey); in big_key_preparse()
158 kfree_sensitive(prep->payload.data[big_key_data]); in big_key_free_preparse()
190 kfree_sensitive(key->payload.data[big_key_data]); in big_key_destroy()
/kernel/linux/linux-5.10/security/keys/trusted-keys/
Dtrusted_tpm1.c71 kfree_sensitive(sdesc); in TSS_sha1()
115 kfree_sensitive(sdesc); in TSS_rawhmac()
169 kfree_sensitive(sdesc); in TSS_authhmac()
254 kfree_sensitive(sdesc); in TSS_checkhmac1()
356 kfree_sensitive(sdesc); in TSS_checkhmac2()
575 kfree_sensitive(td); in tpm_seal()
1070 kfree_sensitive(datablob); in trusted_instantiate()
1071 kfree_sensitive(options); in trusted_instantiate()
1075 kfree_sensitive(payload); in trusted_instantiate()
1084 kfree_sensitive(p); in trusted_rcu_free()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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\|
Ddevm_free.cocci92 kfree_sensitive@p(x)
115 * kfree_sensitive@p(x)
/kernel/linux/linux-5.10/net/bluetooth/
Decdh_helper.c107 kfree_sensitive(tmp); in compute_ecdh_secret()
154 kfree_sensitive(buf); in set_ecdh_privkey()
156 kfree_sensitive(tmp); in set_ecdh_privkey()
/kernel/linux/linux-5.10/drivers/crypto/caam/
Dcaampkc.c857 kfree_sensitive(key->d); in caam_rsa_free_key()
858 kfree_sensitive(key->p); in caam_rsa_free_key()
859 kfree_sensitive(key->q); in caam_rsa_free_key()
860 kfree_sensitive(key->dp); in caam_rsa_free_key()
861 kfree_sensitive(key->dq); in caam_rsa_free_key()
862 kfree_sensitive(key->qinv); in caam_rsa_free_key()
863 kfree_sensitive(key->tmp1); in caam_rsa_free_key()
864 kfree_sensitive(key->tmp2); in caam_rsa_free_key()
1021 kfree_sensitive(rsa_key->dq); in caam_rsa_set_priv_key_form()
1023 kfree_sensitive(rsa_key->dp); in caam_rsa_set_priv_key_form()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/mac80211/
Daead_api.c45 kfree_sensitive(aead_req); in aead_encrypt()
80 kfree_sensitive(aead_req); in aead_decrypt()
/kernel/linux/linux-5.10/drivers/crypto/cavium/zip/
Dzip_crypto.c263 kfree_sensitive(zip_ctx); in zip_alloc_scomp_ctx_deflate()
282 kfree_sensitive(zip_ctx); in zip_alloc_scomp_ctx_lzs()
294 kfree_sensitive(zip_ctx); in zip_free_scomp_ctx()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/crypto/virtio/
Dvirtio_crypto_algs.c170 kfree_sensitive(cipher_key); in virtio_crypto_alg_skcipher_init_session()
187 kfree_sensitive(cipher_key); in virtio_crypto_alg_skcipher_init_session()
200 kfree_sensitive(cipher_key); in virtio_crypto_alg_skcipher_init_session()
475 kfree_sensitive(iv); in __virtio_crypto_skcipher_do_req()
477 kfree_sensitive(req_data); in __virtio_crypto_skcipher_do_req()
586 kfree_sensitive(vc_sym_req->iv); in virtio_crypto_skcipher_finalize_req()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/crypto/cavium/cpt/
Dcptvf_reqmanager.c308 kfree_sensitive(info->scatter_components); in do_request_cleanup()
309 kfree_sensitive(info->gather_components); in do_request_cleanup()
310 kfree_sensitive(info->out_buffer); in do_request_cleanup()
311 kfree_sensitive(info->in_buffer); in do_request_cleanup()
312 kfree_sensitive((void *)info->completion_addr); in do_request_cleanup()
313 kfree_sensitive(info); in do_request_cleanup()
/kernel/linux/linux-5.10/security/keys/encrypted-keys/
Dencrypted.c373 kfree_sensitive(derived_buf); in get_derived_key()
815 kfree_sensitive(epayload); in encrypted_instantiate()
821 kfree_sensitive(datablob); in encrypted_instantiate()
830 kfree_sensitive(epayload); in encrypted_rcu_free()
888 kfree_sensitive(buf); in encrypted_update()
949 kfree_sensitive(ascii_buf); in encrypted_read()
964 kfree_sensitive(key->payload.data[0]); in encrypted_destroy()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-crypto-rsa.c115 kfree_sensitive(ctx->u.rsa.e_buf); in ccp_rsa_free_key_bufs()
118 kfree_sensitive(ctx->u.rsa.n_buf); in ccp_rsa_free_key_bufs()
121 kfree_sensitive(ctx->u.rsa.d_buf); in ccp_rsa_free_key_bufs()
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-cipher.c258 kfree_sensitive(rctx->backup_iv); in sun8i_ce_cipher_prepare()
323 kfree_sensitive(rctx->backup_iv); in sun8i_ce_cipher_unprepare()
422 kfree_sensitive(op->key); in sun8i_ce_cipher_exit()
444 kfree_sensitive(op->key); in sun8i_ce_aes_setkey()
466 kfree_sensitive(op->key); in sun8i_ce_des3_setkey()
/kernel/linux/linux-5.10/drivers/s390/crypto/
Dap_bus.h254 kfree_sensitive(ap_msg->msg); in ap_release_message()
255 kfree_sensitive(ap_msg->private); in ap_release_message()

12345