Re: [PATCH v2 2/2] crypto: ccp - Fail the PSP initialization when writing psp data file failed

From: David Rientjes
Date: Tue Aug 16 2022 - 17:25:40 EST


On Tue, 16 Aug 2022, Jacky Li wrote:

> Currently the OS continues the PSP initialization when there is a write
> failure to the init_ex_file. Therefore, the userspace would be told that
> SEV is properly INIT'd even though the psp data file is not updated.
> This is problematic because later when asked for the SEV data, the OS
> won't be able to provide it.
>
> Fixes: 3d725965f836 ("crypto: ccp - Add SEV_INIT_EX support")
> Reported-by: Peter Gonda <pgonda@xxxxxxxxxx>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Jacky Li <jackyli@xxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>