Re: [stable <= 3.8] kvm: memory leak when memory slot is moved with assigned device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2013-11-28 at 14:35 +0000, Luis Henriques wrote:
> Hi,
> 
> The following commits fix CVE-2013-4592 and they should be included in
> stable kernels <= 3.8 (the first one is already in 3.8):

I've queued these up for 3.2, though I needed to adjust the patch
context a bit.

Ben.

> commit 12d6e7538e2d418c08f082b1b44ffa5fb7270ed8
> Author: Marcelo Tosatti <mtosatti@xxxxxxxxxx>
> Date:   Fri Aug 24 15:54:58 2012 -0300
> 
>     KVM: perform an invalid memslot step for gpa base change
> 
>     PPC must flush all translations before the new memory slot
>     is visible.
> 
>     Signed-off-by: Marcelo Tosatti <mtosatti@xxxxxxxxxx>
>     Signed-off-by: Avi Kivity <avi@xxxxxxxxxx>
> 
> commit e40f193f5bb022e927a57a4f5d5194e4f12ddb74
> Author: Alex Williamson <alex.williamson@xxxxxxxxxx>
> Date:   Mon Dec 10 10:32:57 2012 -0700
> 
>     KVM: Fix iommu map/unmap to handle memory slot moves
> 
>     The iommu integration into memory slots expects memory slots to be
>     added or removed and doesn't handle the move case.  We can unmap
>     slots from the iommu after we mark them invalid and map them before
>     installing the final memslot array.  Also re-order the kmemdup vs
>     map so we don't leave iommu mappings if we get ENOMEM.
> 
>     Reviewed-by: Gleb Natapov <gleb@xxxxxxxxxx>
>     Signed-off-by: Alex Williamson <alex.williamson@xxxxxxxxxx>
>     Signed-off-by: Marcelo Tosatti <mtosatti@xxxxxxxxxx>
> 
> Cheers,
> --
> Luis

-- 
Ben Hutchings
Kids!  Bringing about Armageddon can be dangerous.  Do not attempt it in
your own home. - Terry Pratchett and Neil Gaiman, `Good Omens'

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]