qemu-e2k/migration
Laurent Vivier e8199e4895 migration: don't close a file descriptor while it can be in use
If we close the QEMUFile descriptor in process_incoming_migration_co()
while it has been stopped by an error, the postcopy_ram_listen_thread()
can try to continue to use it. And as the memory has been freed
it is working with an invalid pointer and crashes.

Fix this by releasing the memory after having managed the error
case (which, in fact, calls exit())

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by:  Amit Shah <amit@kernel.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2017-04-21 12:25:40 +02:00
..
block.c migration/block: Avoid invoking blk_drain too frequently 2017-03-16 08:58:27 +01:00
colo-comm.c COLO: Add 'x-colo-lost-heartbeat' command to trigger failover 2016-10-30 15:17:39 +05:30
colo-failover.c COLO: Implement the process of failover for primary VM 2016-10-30 15:17:39 +05:30
colo.c Add a new qmp command to do checkpoint, query xen replication status 2017-02-28 11:02:12 -08:00
exec.c migration: set name for all I/O channels created 2016-10-27 09:13:10 +02:00
fd.c migration: set name for all I/O channels created 2016-10-27 09:13:10 +02:00
Makefile.objs build: remove --enable-colo/--disable-colo 2017-01-16 17:52:35 +01:00
migration.c migration: don't close a file descriptor while it can be in use 2017-04-21 12:25:40 +02:00
postcopy-ram.c ram: ram_discard_range() don't use the mis parameter 2017-04-21 12:25:39 +02:00
qemu-file-channel.c migration: introduce a new QEMUFile impl based on QIOChannel 2016-05-26 11:31:24 +05:30
qemu-file.c add 'release-ram' migrate capability 2017-02-13 17:27:13 +00:00
qjson.c qjson: free str 2016-08-08 00:00:24 +04:00
ram.c ram: Remove migration_bitmap_extend() 2017-04-21 12:25:40 +02:00
rdma.c migration/rdma: Don't flag an error when we've been told about one 2016-10-13 17:22:38 +02:00
savevm.c ram: ram_discard_range() don't use the mis parameter 2017-04-21 12:25:39 +02:00
socket.c io: change the QIOTask callback signature 2017-01-23 15:32:18 +00:00
tls.c migration: use "" as the default for tls-creds/hostname 2017-03-16 08:57:08 +01:00
trace-events ram: Use page number instead of an address for the bitmap operations 2017-04-21 12:25:39 +02:00
vmstate.c vmstate: fix failed iotests case 68 and 91 2017-03-16 08:59:52 +01:00
xbzrle.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00