Re: [PATCH v3 1/9] pstore: Add priv field to pstore_record for backend specific use
From: Kees Cook
Date: Fri Jun 24 2022 - 13:30:31 EST
On Fri, Jun 24, 2022 at 10:49:17AM +0200, Ard Biesheuvel wrote:
> The EFI pstore backend will need to store per-record variable name data
> when we switch away from the efivars layer. Add a priv field to struct
> pstore_record, and document it as holding a backend specific pointer
> that is assumed to be a kmalloc()d buffer, and will be kfree()d when the
> entire record is freed.
>
> Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx>
I'm a fan! This is useful, and I'll likely try to use it for some of the
RAM-specific things too. :)
Acked-by: Kees Cook <keescook@xxxxxxxxxxxx>
--
Kees Cook