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

From: Thomas Huth

Date: Thu Sep 10 2026 - 05:19:32 EST


On 09/09/2026 15.22, Jonathan Corbet wrote:
Thomas Huth <thuth@xxxxxxxxxx> writes:
...
+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