Thread (16 messages) flat view 16 messages, 2 authors, 9d ago

Re: [PATCH v2 13/13] lib/crypto: Add documentation about zeroization of key and context data

From: Thomas Huth <hidden>
Date: 2026-09-10 09:10:06
Also in: linux-doc, lkml

On 09/09/2026 15.22, Jonathan Corbet wrote:
Thomas Huth [off-list ref] writes:
...
quoted
+For other cases, the kernel provides ``memzero_explicit()`` for clearing the
+memory.  Unlike plain ``memset()``, ``memzero_explicit()`` is guaranteed not
+to be optimized away by the compiler, even when the memory being cleared
+appears to be dead.
Don't mark up function names, just say memzero_explicit().  The
automarkup code will then do the right thing, including cross-references
when the functions have kerneldoc documentation.
OK, thanks for the hint, I'll fix it in the next version!

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