From: Xiao Long Jiang <zxiaol@linux.vnet.ibm.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: qemu-devel@nongnu.org, borntraeger@de.ibm.com,
bjsdjshi@linux.vnet.ibm.com
Subject: Re: [Qemu-devel] [PATCH 1/1] qom: fix qdict visit in user_creatable_add_type
Date: Fri, 23 Sep 2016 14:42:25 +0800 [thread overview]
Message-ID: <e035cef3-ca77-bdf1-619c-505a9b7a7543@linux.vnet.ibm.com> (raw)
In-Reply-To: <87intojggv.fsf@dusky.pond.sub.org>
Hi Markus,
On 2016/9/22 下午7:56, Markus Armbruster wrote:
> Xiao Long Jiang <zxiaol@linux.vnet.ibm.com> writes:
>
>> This fixes a Qemu crash that introduced by commit ad73970
>> ("qom: Wrap prop visit in visit_start_struct").
>>
>> Not all of the callers of user_creatable_add_type always pass qdict,
>> so we should check qdict against NULL, but not raise an assertion.
>>
>> The problem can be easily triggered by adding an iothread with:
>> $ virsh iothreadadd <domain> <threadid>
>> In which the <threadid> is newly defined. The result of the command
>> will return an error and cause the running guest crash.
>>
>> Cc: Eric Blake <eblake@redhat.com>
>> Cc: Markus Armbruster <armbru@redhat.com>
>> Signed-off-by: Xiao Long Jiang <zxiaol@linux.vnet.ibm.com>
>> Reviewed-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
> Marc-André already posted a simpler fix:
> Subject: [PATCH] qmp: fix object-add assert() without props
> Message-Id: <20160921194126.10223-1-marcandre.lureau@redhat.com>
>
> Would you be willing to test it? Review would of course also be
> appreciated.
>
> Thanks!
Have tested that patch. It works fine on arch s390 system.
prev parent reply other threads:[~2016-09-23 6:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-22 7:43 [Qemu-devel] [PATCH 1/1] qom: fix qdict visit in user_creatable_add_type Xiao Long Jiang
2016-09-22 11:56 ` Markus Armbruster
2016-09-23 6:42 ` Xiao Long Jiang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e035cef3-ca77-bdf1-619c-505a9b7a7543@linux.vnet.ibm.com \
--to=zxiaol@linux.vnet.ibm.com \
--cc=armbru@redhat.com \
--cc=bjsdjshi@linux.vnet.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).