Received: from eggs.gnu.org ([2001:4830:134:3::10]:47573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn2c5-0008Le-Ga for qemu-devel@nongnu.org; Thu, 22 Sep 2016 07:56:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn2bz-0007kZ-J7 for qemu-devel@nongnu.org; Thu, 22 Sep 2016 07:56:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn2bz-0007kV-D5 for qemu-devel@nongnu.org; Thu, 22 Sep 2016 07:56:19 -0400 From: Markus Armbruster References: <20160922074356.2918-1-zxiaol@linux.vnet.ibm.com> Date: Thu, 22 Sep 2016 13:56:16 +0200 In-Reply-To: <20160922074356.2918-1-zxiaol@linux.vnet.ibm.com> (Xiao Long Jiang's message of "Thu, 22 Sep 2016 09:43:56 +0200") Message-ID: <87intojggv.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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: Xiao Long Jiang Cc: qemu-devel@nongnu.org, borntraeger@de.ibm.com, bjsdjshi@linux.vnet.ibm.com 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!