Re: [patch] crash on a KVM-generated dump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "Sami Liedes" <sliedes@xxxxxxxxx> wrote:

> On Fri, Oct 08, 2010 at 09:31:02AM -0400, Dave Anderson wrote:
> > I don't think that this is associated with KVM, but rather the
> kernel
> > version used.  It should be pretty easy to debug on your end,
> because it
> > boils down to these initializations at the top of
> x86_64_per_cpu_init()
> >
> >         irq_sp = per_cpu_symbol_search("per_cpu__irq_stack_union");
> >         cpu_sp = per_cpu_symbol_search("per_cpu__cpu_number");
> >
> > If it's a UP kernel, and if "irq_sp" does not get set, then isize would
> > be left uninitialized.
> 
> It's a uniprocessor amd64 kernel. Neither irq_sp nor cpu_sp get set.
> 
> I have
> 
> crash> sym irq_stack_union
> ffffffff81a1c000 (D) irq_stack_union
> crash> sym cpu_number
> symbol not found: cpu_number
> 
> It's not accepted by per_cpu_symbol_search() because its type is not
> 'V' and because it's not between __per_cpu_start and __per_cpu_end.
> __per_cpu_start and __per_cpu_end are the same; I don't know if
> there's something wrong with that.

Try the attached patch.

Dave

--- x86_64.c	4 Oct 2010 19:35:49 -0000	1.158
+++ x86_64.c	8 Oct 2010 14:17:38 -0000
@@ -827,7 +827,7 @@
 		/*
 		 * Presume kernel is !CONFIG_SMP.
 		 */
-		if (irq_sp) { 
+		if (irq_sp || (irq_sp = symbol_search("irq_stack_union"))) { 
 			ms->stkinfo.ibase[0] = irq_sp->value;
 			if ((ms->stkinfo.isize = 
 		    	    MEMBER_SIZE("irq_stack_union", "irq_stack")) <= 0)

Attachment: signature.asc
Description: Digital signature

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux