Re: [PATCH v6 2/6] mm/mmzone: Tag pg_data_t with crypto capabilities

From: Kees Cook
Date: Mon Feb 07 2022 - 16:19:41 EST


On Thu, Feb 03, 2022 at 01:43:24PM -0300, Martin Fernandez wrote:
> Add a new member in the pg_data_t struct tell whether the node
> corresponding to that pg_data_t is able to do hardware memory encryption.
>
> This will be read from sysfs.
>
> Signed-off-by: Martin Fernandez <martin.fernandez@xxxxxxxxxxxxx>

Seems reasonable, and doesn't grow the structure size. :)

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook