From: Ian Jackson Subject: Re: [PATCH 4/4] libxl: More probably detect reentry of destroyed ctx Date: Mon, 9 Feb 2015 17:41:21 +0000 Message-ID: <21720.61761.716920.591599@mariner.uk.xensource.com> References: <1423497072-7835-1-git-send-email-ian.jackson@eu.citrix.com> <1423497072-7835-4-git-send-email-ian.jackson@eu.citrix.com> <20150209163059.GF30747@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150209163059.GF30747@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: Jim Fehlig , xen-devel@lists.xensource.com, Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Wei Liu writes ("Re: [PATCH 4/4] libxl: More probably detect reentry of destroyed ctx"): > On Mon, Feb 09, 2015 at 03:51:12PM +0000, Ian Jackson wrote: > > In libxl_ctx_free: > > > > 1. Move the GC_INIT earlier, so that we can: > > Acked-by: Wei Liu Thanks. > > + assert(!ctx->osevent_in_hook); > > + CTX->osevent_in_hook += 1000; > > It would be good if you add comment here to say this is used to help > debugging. Good idea. I have done this: CTX->osevent_in_hook += 1000; /* make violations easier to debug */ Thanks for your acks. I will push this to staging now. I think at least 1-3 of these, and probably all of them, should be backported. Ian.