diff options
author | David Rientjes <rientjes@google.com> | 2019-03-25 21:47:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-08 08:21:50 +0300 |
commit | 82e8da1f1a91ab980bb9cfc35a059c314d0f26e0 (patch) | |
tree | 0f2a12f10e0e71c890d6158c39743ff866f77e70 /mm/kmemleak.c | |
parent | 57186663b3a17f85bb098c736f3415deea6941da (diff) | |
download | linux-82e8da1f1a91ab980bb9cfc35a059c314d0f26e0.tar.xz |
KVM: SVM: prevent DBG_DECRYPT and DBG_ENCRYPT overflow
[ Upstream commit b86bc2858b389255cd44555ce4b1e427b2b770c0 ]
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 <cfir@google.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'mm/kmemleak.c')
0 files changed, 0 insertions, 0 deletions