Skip to content
Commit efb4b01c authored by Jacky Li's avatar Jacky Li Committed by Herbert Xu
Browse files

crypto: ccp - Fail the PSP initialization when writing psp data file failed



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: 3d725965 ("crypto: ccp - Add SEV_INIT_EX support")
Reported-by: default avatarPeter Gonda <pgonda@google.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarJacky Li <jackyli@google.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Acked-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent d8da2da2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment