Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B08DCC43331 for ; Tue, 12 Nov 2019 14:35:43 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7E77E20674 for ; Tue, 12 Nov 2019 14:35:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="H1o4Zf1+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7E77E20674 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=invisiblethingslab.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iUXGN-0001Gq-Bb; Tue, 12 Nov 2019 14:35:23 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iUXGM-0001Gl-2j for xen-devel@lists.xenproject.org; Tue, 12 Nov 2019 14:35:22 +0000 X-Inumbo-ID: a7cce178-0559-11ea-b678-bc764e2007e4 Received: from out1-smtp.messagingengine.com (unknown [66.111.4.25]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id a7cce178-0559-11ea-b678-bc764e2007e4; Tue, 12 Nov 2019 14:35:21 +0000 (UTC) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 4800522283; Tue, 12 Nov 2019 09:35:21 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Tue, 12 Nov 2019 09:35:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=QyPeM6 6v5A+xfI05GrKLsZv0bCeGDGJfERmOBh35jhI=; b=H1o4Zf1+3ZB21ebjZum+m9 vfSwdLdqjH+XK1liM9hH9hCDsmlb0gUSYKkZwUQuJvnZS8FysFyRSfaCpG/txtAO QlFL+Az1MP5MHfpDil1fy3/9YKo8/ojUq31l1zUM5L3894WeaRLe416PEW0mgl3A 1a1syWToMfGO2k5eqIWEKoFdxejiaCBQMgNRxPxEria4FPKd7v/sR3tXXCz172UA n34AGT7wZjGbja/bSJfFlS8t72PXKTOorqQ2AH+w4Bk93xF9ejIgTdgK+Q+O9tmj jIOhdA3HhHGN+BFjAAD7KJg+77MyEfLuYEoi8NcQIirVcbeA8fM407qDT97orQdQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddvledgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeforghrvghk ucforghrtgiihihkohifshhkihdqifpkrhgvtghkihcuoehmrghrmhgrrhgvkhesihhnvh hishhisghlvghthhhinhhgshhlrggsrdgtohhmqeenucfkphepledurdeihedrfeegrdef feenucfrrghrrghmpehmrghilhhfrhhomhepmhgrrhhmrghrvghksehinhhvihhsihgslh gvthhhihhnghhslhgrsgdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from mail-itl (ip5b412221.dynamic.kabel-deutschland.de [91.65.34.33]) by mail.messagingengine.com (Postfix) with ESMTPA id 03F29306005C; Tue, 12 Nov 2019 09:35:19 -0500 (EST) Date: Tue, 12 Nov 2019 15:35:17 +0100 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Anthony PERARD Message-ID: <20191112143517.GK18277@mail-itl> References: <20191112141943.245215-1-anthony.perard@citrix.com> MIME-Version: 1.0 In-Reply-To: <20191112141943.245215-1-anthony.perard@citrix.com> Subject: Re: [Xen-devel] [XEN PATCH for-4.13] libxl: Fix libxl_retrieve_domain_configuration error path X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?B?SsO8cmdlbiBHcm/Dnw==?= , xen-devel@lists.xenproject.org, Anthony PERARD , Ian Jackson , Wei Liu Content-Type: multipart/mixed; boundary="===============3962921207960864385==" Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" --===============3962921207960864385== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5cSRzy0VGBWAML+b" Content-Disposition: inline --5cSRzy0VGBWAML+b Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [XEN PATCH for-4.13] libxl: Fix libxl_retrieve_domain_configuration error path On Tue, Nov 12, 2019 at 02:19:43PM +0000, Anthony PERARD wrote: > From: Anthony PERARD >=20 > If an error were to happen before the last step, for example the > domain_configuration is missing, the error wouldn't be check by the > _end callback. >=20 > Fix that, also initialise `lock' to NULL because the exit path checks > it. >=20 > The issue shows up when there's a stubdom, and running `xl list -l` > aborts. Instead, with this patch, `xl list -l` will not list stubdom, > probably like before. >=20 > Reported-by: Marek Marczykowski-G=C3=B3recki > Fixes: 61563419257ed40278938db2cce7d697aed44f5d > Signed-off-by: Anthony PERARD With this patch applied, `xl list -l` no longer crashes and only prints this error for a stubdomain: libxl: error: libxl_domain.c:1937:retrieve_domain_configuration_lock_acquir= ed: Domain 11:Fail to get domain configuration The actual HVM is listed correctly. This was the previous behavior on Xen 4.8 too. Tested-by: Marek Marczykowski-G=C3=B3recki Thanks! --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --5cSRzy0VGBWAML+b Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAl3KwyQACgkQ24/THMrX 1yy4xggAmt7zBluPTWyrHWto/7Wyy4MOr3yi3GJ7zGt16TuDPqSvb2eJeOs3b+9u BvwkVwD1lN7yum6kij/OWS8X0loaNBQaaiA77PhzbmeWE2tfC4QpJ7f6N68Aicfl vCEghwOADMfxU1dO+O0FIJjDWfYOWHCItd+kplu6HbCJRa7NszaL/F/v6Pm+EUKH aG79yfsoWbkQmwzn9uBBpipuhZCS/I90wLE3PN+6i3gSBLSPQVBtfbuzpS/9At09 Kfo2uXMd0Cmwfc2Hze1bjnzTLnIIwCFFVDeo+Q5eSXCO8DlL2UaaFqNmm7RblYor WAcDCH+qv+QLk8fcRwyHjmJ90ggnWA== =Sm0W -----END PGP SIGNATURE----- --5cSRzy0VGBWAML+b-- --===============3962921207960864385== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============3962921207960864385==--