From: Keir Fraser Subject: Re: [PATCH, v2] x86: slightly improve stack trace on debug builds Date: Wed, 26 Sep 2012 08:54:13 +0100 Message-ID: References: <5062C50B020000780009DE1C@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5062C50B020000780009DE1C@nat28.tlf.novell.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: Jan Beulich Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On 26/09/2012 08:04, "Jan Beulich" wrote: > As was rather obvious from crashes recently happening in stage testing, > the debug hypervisor, in that special case, has a drawback compared to > the non-debug one: When a call through a bad pointer happens, there's > no frame, and the top level (and frequently most important for > analysis) stack entry would get skipped: > ... > > Since the bad pointer is being printed anyway (as part of the register > state), replace it with the top of stack value in such a case. > > With the introduction of is_active_kernel_text(), use it also at the > (few) other suitable places (I intentionally didn't replace the use in > xen/arch/arm/mm.c - while it would be functionally correct, the > dependency on system_state wouldn't be from an abstract perspective). > > Signed-off-by: Jan Beulich Acked-by: Keir Fraser