Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: ccp - Fix uAPI definitions of PSP errors

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>

authored by

Dionna Glaze and committed by
Herbert Xu
b949f556 52b3b329

+14 -7
+14 -7
include/uapi/linux/psp-sev.h
··· 73 73 SEV_RET_INVALID_PARAM, 74 74 SEV_RET_RESOURCE_LIMIT, 75 75 SEV_RET_SECURE_DATA_INVALID, 76 - SEV_RET_INVALID_KEY = 0x27, 77 - SEV_RET_INVALID_PAGE_SIZE, 78 - SEV_RET_INVALID_PAGE_STATE, 79 - SEV_RET_INVALID_MDATA_ENTRY, 80 - SEV_RET_INVALID_PAGE_OWNER, 81 - SEV_RET_INVALID_PAGE_AEAD_OFLOW, 82 - SEV_RET_RMP_INIT_REQUIRED, 76 + SEV_RET_INVALID_PAGE_SIZE = 0x0019, 77 + SEV_RET_INVALID_PAGE_STATE = 0x001A, 78 + SEV_RET_INVALID_MDATA_ENTRY = 0x001B, 79 + SEV_RET_INVALID_PAGE_OWNER = 0x001C, 80 + SEV_RET_AEAD_OFLOW = 0x001D, 81 + SEV_RET_EXIT_RING_BUFFER = 0x001F, 82 + SEV_RET_RMP_INIT_REQUIRED = 0x0020, 83 + SEV_RET_BAD_SVN = 0x0021, 84 + SEV_RET_BAD_VERSION = 0x0022, 85 + SEV_RET_SHUTDOWN_REQUIRED = 0x0023, 86 + SEV_RET_UPDATE_FAILED = 0x0024, 87 + SEV_RET_RESTORE_REQUIRED = 0x0025, 88 + SEV_RET_RMP_INITIALIZATION_FAILED = 0x0026, 89 + SEV_RET_INVALID_KEY = 0x0027, 83 90 SEV_RET_MAX, 84 91 } sev_ret_code; 85 92