[PATCH v3 06/12] crypto: api - Allocate tfms from the secret pool
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Mon Sep 28 17:32:49 UTC 2026
> A tfm's context holds the expanded key schedule, which a crash dump
> would capture.
>
> Allocate tfms from the secret pool, so that their backing pages are
> marked by crash_memaction for the kdump kernel to wipe.
> The context is a flexible array at the end of struct crypto_tfm and the
> frontend's private data sits in front of the struct, so the whole
> allocation moves into the pool.
>
> Allocation cost increases by a bucket lookup in crash_memaction. Freeing
> is unchanged.
>
> Signed-off-by: Jan Sebastian Götte <linux at jaseg.de>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260928-crash-memaction-upstream-20260921-v3-0-e511e9ee2329@jaseg.de?part=6
More information about the Linux-security-module-archive
mailing list