• G
    vmsvga: shadow fifo registers · 71798fda
    Gerd Hoffmann 提交于
    The fifo is normal ram.  So kvm vcpu threads and qemu iothread can
    access the fifo in parallel without syncronization.  Which in turn
    implies we can't use the fifo pointers in-place because the guest
    can try changing them underneath us.  So add shadows for them, to
    make sure the guest can't modify them after we've applied sanity
    checks.
    
    Fixes: CVE-2016-4454
    Cc: qemu-stable@nongnu.org
    Cc: P J P <ppandit@redhat.com>
    Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
    Message-id: 1464592161-18348-4-git-send-email-kraxel@redhat.com
    (cherry picked from commit 7e486f75)
    Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
    71798fda
vmware_vga.c 38.7 KB