aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorBrijesh Singh <[email protected]>2018-08-15 16:11:25 -0500
committerHerbert Xu <[email protected]>2018-09-13 13:27:43 +0800
commit3702a0585e64d70d5bf73bf3e943b8d6005b72c1 (patch)
treed22d778c3f433f6d175d3e154d90d3914b72c4c5 /net
parent57361846b52bc686112da6ca5368d11210796804 (diff)
crypto: ccp - add timeout support in the SEV command
Currently, the CCP driver assumes that the SEV command issued to the PSP will always return (i.e. it will never hang). But recently, firmware bugs have shown that a command can hang. Since of the SEV commands are used in probe routines, this can cause boot hangs and/or loss of virtualization capabilities. To protect against firmware bugs, add a timeout in the SEV command execution flow. If a command does not complete within the specified timeout then return -ETIMEOUT and stop the driver from executing any further commands since the state of the SEV firmware is unknown. Cc: Tom Lendacky <[email protected]> Cc: Gary Hook <[email protected]> Cc: Herbert Xu <[email protected]> Cc: [email protected] Signed-off-by: Brijesh Singh <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions