Re: [PATCH v3 06/12] crypto: api - Allocate tfms from the secret pool

From: sashiko-bot

Date: Mon Sep 28 2026 - 13:52:30 EST


> 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@xxxxxxxx>

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@xxxxxxxx?part=6