aboutsummaryrefslogtreecommitdiff
path: root/hw/intc
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@suse.de>2024-03-15 00:20:39 -0300
committerPeter Xu <peterx@redhat.com>2024-03-15 11:26:33 -0400
commit9adfb308c1513562d6acec02aa780c5ef9b0193d (patch)
treeed407ce31bbdb3cb07b0276cefa9adcc10c0a4e5 /hw/intc
parent73f6f9a12fb4a3afe01e18690ebd6a6e4283c1a6 (diff)
downloadqemu-9adfb308c1513562d6acec02aa780c5ef9b0193d.zip
qemu-9adfb308c1513562d6acec02aa780c5ef9b0193d.tar.gz
qemu-9adfb308c1513562d6acec02aa780c5ef9b0193d.tar.bz2
migration/multifd: Duplicate the fd for the outgoing_args
We currently store the file descriptor used during the main outgoing channel creation to use it again when creating the multifd channels. Since this fd is used for the first iochannel, there's risk that the QIOChannel gets freed and the fd closed while outgoing_args.fd still has it available. This could lead to an fd-reuse bug. Duplicate the outgoing_args fd to avoid this issue. Suggested-by: Peter Xu <peterx@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Peter Xu <peterx@redhat.com> Link: https://lore.kernel.org/r/20240315032040.7974-3-farosas@suse.de Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'hw/intc')
0 files changed, 0 insertions, 0 deletions