]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: ccp - Fix uAPI definitions of PSP errors
authorDionna Glaze <dionnaglaze@google.com>
Sat, 8 Mar 2025 01:10:28 +0000 (12:10 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:52 +0000 (10:15 +0200)
commiteaa7014aecb5e46ff94c3c8395b57f78bcf22baf
tree90b1eebe7ab37893eba11d7b0e15967f397f8285
parent5116b340cf8858e645338edbd2bae641b6ac2c88
crypto: ccp - Fix uAPI definitions of PSP errors

commit b949f55644a6d1645c0a71f78afabf12aec7c33b upstream.

Additions to the error enum after explicit 0x27 setting for
SEV_RET_INVALID_KEY leads to incorrect value assignments.

Use explicit values to match the manufacturer specifications more
clearly.

Fixes: 3a45dc2b419e ("crypto: ccp: Define the SEV-SNP commands")
CC: stable@vger.kernel.org
Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Alexey Kardashevskiy <aik@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/psp-sev.h