From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastian Blank Subject: Saving domain in xl does not have proper cleanup Date: Sun, 16 Sep 2012 16:58:30 +0200 Message-ID: <20120916145830.GB22987@wavehammer.waldi.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hi Saving a domain without enough available space with xl in 4.2-rc5 fails to cleanup completely. The domain informations remains in Xenstore, the domain itself seems to remain in a suspended state and there is not xl process for it anymore. Reason is the use of the MUST macro in save_domain. It exits the process prematurely instead of cleaning up the external visible changes. Also the MUST macro is broken. exit() only takes "values & 0xff", so this macro may exit the process with 0 if the error value is chosen unwisely. Bastian -- A princess should not be afraid -- not with a brave knight to protect her. -- McCoy, "Shore Leave", stardate 3025.3