[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] Fix the segment fault when calling yank_register_instanc
From: |
Lukas Straub |
Subject: |
Re: [PATCH 1/2] Fix the segment fault when calling yank_register_instance |
Date: |
Wed, 17 Mar 2021 22:06:19 +0100 |
On Mon, 15 Mar 2021 18:06:35 +0100
Li Zhang <zhlcindy@gmail.com> wrote:
> From: Li Zhang <li.zhang@cloud.ionos.com>
>
> When executing the QMP commands "chardev-change" to change the
> backend device to socket, it will cause a segment fault because
> it assumes chr->label as non-NULL in function yank_register_instance.
> The function qmp_chardev_change calls chardev_new, which label
> is NULL when creating a new chardev. The label will be passed to
> yank_register_instance which causes a segment fault. The callchain
> is as the following:
> chardev_new ->
> qemu_char_open ->
> cc->open ->
> qmp_chardev_open_socket ->
> yank_register_instance
Oh, I didn't consider the chardev-change case. I'll look into it.
Regards,
Lukas Straub
--
pgpG3kMahO6oD.pgp
Description: OpenPGP digital signature
Re: [PATCH 1/2] Fix the segment fault when calling yank_register_instance,
Lukas Straub <=
Re: [PATCH 1/2] Fix the segment fault when calling yank_register_instance, Markus Armbruster, 2021/03/26