Thread (20 messages) 20 messages, 11 authors, 2020-06-15

Re: [PATCH v2 2/2] crypto: Remove unnecessary memzero_explicit()

From: Joe Perches <joe@perches.com>
Date: 2020-04-14 19:57:33
Also in: cocci, intel-wired-lan, keyrings, linux-amlogic, linux-arm-kernel, linux-bluetooth, linux-btrfs, linux-cifs, linux-crypto, linux-fscrypt, linux-integrity, linux-mediatek, linux-mm, linux-nfs, linux-pm, linux-s390, linux-scsi, linux-sctp, linux-security-module, linux-wireless, lkml, netdev, target-devel, virtualization

On Tue, 2020-04-14 at 15:37 -0400, Waiman Long wrote:
OK, I can change it to clear the key length when the allocation failed
which isn't likely.

Perhaps:

	kfree_sensitive(op->key);
	op->key = NULL;
	op->keylen = 0;

but I don't know that it impacts any possible state.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help