aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorDavid Rientjes <[email protected]>2019-03-25 18:47:31 +0000
committerPaolo Bonzini <[email protected]>2019-04-05 18:49:42 +0000
commitb86bc2858b389255cd44555ce4b1e427b2b770c0 (patch)
tree0744c853c7f9e063f9349963b306eb0bef0d72a4 /lib/string_helpers.c
parentkvm: svm: fix potential get_num_contig_pages overflow (diff)
downloadkernel-b86bc2858b389255cd44555ce4b1e427b2b770c0.tar.gz
kernel-b86bc2858b389255cd44555ce4b1e427b2b770c0.zip
KVM: SVM: prevent DBG_DECRYPT and DBG_ENCRYPT overflow
This ensures that the address and length provided to DBG_DECRYPT and DBG_ENCRYPT do not cause an overflow. At the same time, pass the actual number of pages pinned in memory to sev_unpin_memory() as a cleanup. Reported-by: Cfir Cohen <[email protected]> Signed-off-by: David Rientjes <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions