[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 07/11] chardev: fix qemu_chr_open_fd() being called with f
|
From: |
Daniel P . Berrangé |
|
Subject: |
Re: [PATCH v2 07/11] chardev: fix qemu_chr_open_fd() being called with fd=-1 |
|
Date: |
Thu, 5 Aug 2021 11:39:19 +0100 |
|
User-agent: |
Mutt/2.0.7 (2021-05-04) |
On Wed, Aug 04, 2021 at 07:48:44PM +0400, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> The "file" chardev may call qemu_chr_open_fd() with fd_in=-1. This may
> cause invalid system calls, as the QIOChannel is assumed to be properly
> initialized later on.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> chardev/char-fd.c | 26 +++++++++++++++++---------
> 1 file changed, 17 insertions(+), 9 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [PATCH v2 00/11] chardev related fixes, marcandre . lureau, 2021/08/04
- [PATCH v2 01/11] util: fix abstract socket path copy, marcandre . lureau, 2021/08/04
- [PATCH v2 03/11] chardev: remove needless class method, marcandre . lureau, 2021/08/04
- [PATCH v2 07/11] chardev: fix qemu_chr_open_fd() being called with fd=-1, marcandre . lureau, 2021/08/04
- Re: [PATCH v2 07/11] chardev: fix qemu_chr_open_fd() being called with fd=-1,
Daniel P . Berrangé <=
- [PATCH v2 06/11] chardev: fix fd_chr_add_watch() when in != out, marcandre . lureau, 2021/08/04
- [PATCH v2 08/11] chardev: fix qemu_chr_open_fd() with fd_in==fd_out, marcandre . lureau, 2021/08/04
- [PATCH v2 04/11] chardev: add some comments about the class methods, marcandre . lureau, 2021/08/04
- [PATCH v2 02/11] chardev/socket: print a more correct command-line address, marcandre . lureau, 2021/08/04
- [PATCH v2 11/11] chardev: reuse qmp_chardev_new(), marcandre . lureau, 2021/08/04
- [PATCH v2 09/11] chardev: give some context on chardev-add error, marcandre . lureau, 2021/08/04