diff options
| author | Tom Lendacky <[email protected]> | 2023-02-22 16:39:39 +0000 |
|---|---|---|
| committer | Borislav Petkov (AMD) <[email protected]> | 2023-03-01 09:17:46 +0000 |
| commit | dd093fb08e8f8a958fec4eef36f9f09eac047f60 (patch) | |
| tree | b048e4c4d88c70fa710ed9de09342be501f4bc7b /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | Documentation/hw-vuln: Document the interaction between IBRS and STIBP (diff) | |
| download | kernel-dd093fb08e8f8a958fec4eef36f9f09eac047f60.tar.gz kernel-dd093fb08e8f8a958fec4eef36f9f09eac047f60.zip | |
virt/sev-guest: Return -EIO if certificate buffer is not large enough
Commit
47894e0fa6a5 ("virt/sev-guest: Prevent IV reuse in the SNP guest driver")
changed the behavior associated with the return value when the caller
does not supply a large enough certificate buffer. Prior to the commit a
value of -EIO was returned. Now, 0 is returned. This breaks the
established ABI with the user.
Change the code to detect the buffer size error and return -EIO.
Fixes: 47894e0fa6a5 ("virt/sev-guest: Prevent IV reuse in the SNP guest driver")
Reported-by: Larry Dewey <[email protected]>
Signed-off-by: Tom Lendacky <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Tested-by: Larry Dewey <[email protected]>
Cc: <[email protected]>
Link: https://lore.kernel.org/r/2afbcae6daf13f7ad5a4296692e0a0fe1bc1e4ee.1677083979.git.thomas.lendacky@amd.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
