Thread (12 messages) flat view 12 messages, 3 authors, 2021-12-10

Re: [PATCH v2 2/2] misc: dice: Add driver to forward secrets to userspace

From: Pavel Machek <hidden>
Date: 2021-12-09 19:39:17
Also in: linux-devicetree, lkml

Hi!
quoted
+	memzero_explicit(kaddr, dice_rmem->size);
+	devm_memunmap(dice_misc.this_device, kaddr);
Do you really need to call memzero_explicit()?  This isn't "local"
memory, if the compiler "optimizes away" a normal call, it would be
_VERY_ broken.
For clearing secrets, I believe memzero_explicit is nice
documentation.

Best regards,
								Pavel
								
-- 
http://www.livejournal.com/~pavelmachek

Attachments

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