Received: from eggs.gnu.org ([2001:4830:134:3::10]:53297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnKBy-0001TF-8P for qemu-devel@nongnu.org; Fri, 23 Sep 2016 02:42:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnKBt-00025W-AC for qemu-devel@nongnu.org; Fri, 23 Sep 2016 02:42:38 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:44983 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnKBt-000254-3w for qemu-devel@nongnu.org; Fri, 23 Sep 2016 02:42:33 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u8N6c8Si113594 for ; Fri, 23 Sep 2016 02:42:32 -0400 Received: from e37.co.us.ibm.com (e37.co.us.ibm.com [32.97.110.158]) by mx0b-001b2d01.pphosted.com with ESMTP id 25mqb7a1p0-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 23 Sep 2016 02:42:32 -0400 Received: from localhost by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 23 Sep 2016 00:42:30 -0600 References: <20160922074356.2918-1-zxiaol@linux.vnet.ibm.com> <87intojggv.fsf@dusky.pond.sub.org> From: Xiao Long Jiang Date: Fri, 23 Sep 2016 14:42:25 +0800 MIME-Version: 1.0 In-Reply-To: <87intojggv.fsf@dusky.pond.sub.org> Content-Type: text/plain; charset=utf-8; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/1] qom: fix qdict visit in user_creatable_add_type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, borntraeger@de.ibm.com, bjsdjshi@linux.vnet.ibm.com Hi Markus, On 2016/9/22 =E4=B8=8B=E5=8D=887:56, Markus Armbruster wrote: > Xiao Long Jiang 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 >> In which the is newly defined. The result of the command >> will return an error and cause the running guest crash. >> >> Cc: Eric Blake >> Cc: Markus Armbruster >> Signed-off-by: Xiao Long Jiang >> Reviewed-by: Dong Jia Shi > Marc-Andr=C3=A9 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.