On Wed, Apr 04, 2018 at 10:53:22AM +0100, Stefan Hajnoczi wrote:
> On Wed, Mar 28, 2018 at 09:34:35PM +0800, linzhecheng wrote:
> > Check device having the feature of VIRTIO_CONSOLE_F_EMERG_WRITE before
> > get config->emerg_wr. It is neccessary because sizeof(virtio_console_config)
> > is 8 byte if VirtIOSerial doesn't have the feature of
> > VIRTIO_CONSOLE_F_EMERG_WRITE(see virtio_serial_device_realize),
> > read/write emerg_wr will lead to heap-over-flow.
> > 
> > Signed-off-by: linzhecheng <linzhech...@huawei.com>
> 
> Michael or Paolo: Please merge for QEMU 2.12
> 
> Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>


Reviewed-by: Michael S. Tsirkin <m...@redhat.com>

Will merge.


Reply via email to