Skip to contentSkip to conversation

Xenlinux oops and crashes with nbd, Xen no longer boots

DISCUSSION [email protected] 3 participants 3 messages Jul 11, 2004 – Jul 12, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

When I start a new domain using an nbd exported device into domain0, xenlinux Oops and crashes. Nbd otherwise works fine in domain0 I can mount filesystems on it, dd them all, export them from domain0 to a new domain via nfs from domain0 also works.

This is easily reproducable, with somthing like

disk = [ 'phy:/dev/xen-uml0,sda1,w' ]

Where xen-uml0 is the nbd exported device.

With Changeset 1.1063 Xen crashes at start up only displaying the figlet banner + (Xen) Unknown Interrupt.

Hardware is
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 3
model name : AMD Duron(tm) Processor
stepping : 1
cpu MHz : 697.541
cache size : 64 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips : 6973.03

Signature · 1 line
bill boughton

ksymoops 2.4.9 on i686 2.4.26-xen0. Options used
-V (default)
-k /proc/ksyms (default)
-l /proc/modules (default)
-o /lib/modules/2.4.26-xen0/ (default)
-M (specified)

invalid operand: 0000
CPU:    0
EIP:    0819:[<c00b8abb>]    Not tainted

Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00213286
eax: 0000003a ebx: c46e4040 ecx: c016a000 edx: 00000000
esi: 00000030 edi: c46e4160 ebp: c016bcd0 esp: c016bcc0
ds: 0821 es: 0821 ss: 0821
Process swapper (pid: 0, stackpage=c016b000)<1>

Stack: c011eba0 c00d5258 c46e4040 c46e4040 c016bd48 c00d5258 00000678 00000030
       00000004 00000008 0000000e c5d0aca0 c016bd18 c00c394c c349c800 00000008
       0000000e c016bd40 0000000c c46e4098 c016bea8 0000001c 00000000 000005a8
Call Trace: [<c00d5258>] [<c00d5258>] [<c00c394c>] [<c001fc7e>] [<c00f1ea1>]
   [<c00b55a3>] [<c7c800e0>] [<c009209f>] [<c00b3622>] [<c00bcc8f>] [<c7c82a28>]
   [<c0092351>] [<c7ccd118>] [<c7cce394>] [<c009275c>] [<c008f546>] [<c000c342>]
   [<c000c0a8>] [<c000be9e>] [<c006ebc0>] [<c007325e>] [<c006d5d7>] [<c006b5c2>]
 <0>Kernel panic: Aiee, killing interrupt handler!

Warning (Oops_read): Code line not seen, dumping what data is available

Quoted 7 lines
Quoted 7 lines

EIP; c00b8abb <alloc_skb+11b/250> <=====

ebx; c46e4040 <_end+4525cc0/7a61d00>
ecx; c016a000 <init_task_union+0/a430>
edi; c46e4160 <_end+4525de0/7a61d00>
ebp; c016bcd0 <init_task_union+1cd0/a430>
esp; c016bcc0 <init_task_union+1cc0/a430>

Trace; c00d5258 <tcp_sendmsg+8a8/1340>
Trace; c00d5258 <tcp_sendmsg+8a8/1340>
Trace; c00c394c <rtnetlink_put_metrics+9c/580>
Trace; c001fc7e <kfree+3e/70>
Trace; c00f1ea1 <inet_sendmsg+41/50>
Trace; c00b55a3 <sock_sendmsg+73/b0>
Trace; c7c800e0 <[ipv6]fib6_clean_tree+30/40>
Trace; c009209f <get_gendisk+94f/16b0>
Trace; c00b3622 <pci_assign_resource+6b62/85c0>
Trace; c00bcc8f <dev_queue_xmit+9f/2e0>
Trace; c7c82a28 <[ipv6]ndisc_send_rs+1a8/230>
Trace; c0092351 <get_gendisk+c01/16b0>
Trace; c7ccd118 <.data.end+4b99/????>
Trace; c7cce394 <.data.end+5e15/????>
Trace; c009275c <get_gendisk+100c/16b0>
Trace; c008f546 <generic_unplug_device+66/70>
Trace; c000c342 <__run_task_queue+62/140>
Trace; c000c0a8 <__tasklet_hi_schedule+d8/1e0>
Trace; c000be9e <do_softirq+de/100>
Trace; c006ebc0 <enable_irq+160/170>
Trace; c007325e <evtchn_do_upcall+9e/1310>
Trace; c006d5d7 <__up_wakeup+13e7/27b0>
Trace; c006b5c2 <enable_hlt+72/d0>

1 warning issued. Results may not be reliable.

0000:00:00.0 Host bridge: Silicon Integrated Systems [SiS] 730 Host (rev 02)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR-
Latency: 32
Region 0: Memory at d0000000 (32-bit, non-prefetchable) [size=64M]
Expansion ROM at <unassigned> [disabled] [size=2K]
Capabilities: <available only to root>

0000:00:00.1 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0) (prog-if 80 [Master])
Subsystem: Silicon Integrated Systems [SiS] SiS5513 EIDE Controller (A,B step)
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 16
Region 4: I/O ports at ff00 [size=16]
Expansion ROM at <unassigned> [disabled] [size=2K]

0000:00:01.0 ISA bridge: Silicon Integrated Systems [SiS] SiS85C503/5513 (LPC Bridge)
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Expansion ROM at <unassigned> [disabled] [size=2K]

0000:00:01.1 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 82)
Subsystem: Silicon Integrated Systems [SiS] SiS900 10/100 Ethernet Adapter
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin ? routed to IRQ 5
Region 0: I/O ports at cc00 [size=256]
Region 1: Memory at cfff7000 (32-bit, non-prefetchable) [size=4K]
Expansion ROM at cffc0000 [disabled] [size=128K]
Capabilities: <available only to root>

0000:00:01.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07) (prog-if 10 [OHCI])
Subsystem: Silicon Integrated Systems [SiS] USB 1.0 Controller
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64, Cache Line Size: 0x08 (32 bytes)
Interrupt: pin ? routed to IRQ 11
Region 0: Memory at cfffc000 (32-bit, non-prefetchable) [size=4K]
Expansion ROM at <unassigned> [disabled] [size=2K]

0000:00:01.3 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07) (prog-if 10 [OHCI])
Subsystem: Silicon Integrated Systems [SiS] Onboard USB Controller
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64, Cache Line Size: 0x08 (32 bytes)
Interrupt: pin ? routed to IRQ 11
Region 0: Memory at cfffd000 (32-bit, non-prefetchable) [size=4K]
Expansion ROM at <unassigned> [disabled] [size=2K]

0000:00:01.4 Multimedia audio controller: Silicon Integrated Systems [SiS] SiS PCI Audio Accelerator (rev 02)
Subsystem: Silicon Integrated Systems [SiS] SiS PCI Audio Accelerator
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin ? routed to IRQ 11
Region 0: I/O ports at d000 [size=256]
Region 1: Memory at cfffe000 (32-bit, non-prefetchable) [size=4K]
Expansion ROM at <unassigned> [disabled] [size=2K]
Capabilities: <available only to root>

0000:00:01.6 Modem: Silicon Integrated Systems [SiS] AC'97 Modem Controller (rev a0) (prog-if 00 [Generic])
Subsystem: Silicon Integrated Systems [SiS] AC'97 Modem Controller
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin ? routed to IRQ 5
Region 0: I/O ports at d800 [size=256]
Region 1: I/O ports at d400 [size=128]
Expansion ROM at <unassigned> [disabled] [size=2K]
Capabilities: <available only to root>

0000:01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 630/730 PCI/AGP VGA Display Adapter (rev 31) (prog-if 00 [VGA])
Subsystem: Silicon Integrated Systems [SiS] 630/730 PCI/AGP VGA Display Adapter
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
BIST result: 00
Region 0: Memory at c0000000 (32-bit, prefetchable) [size=128M]
Region 1: Memory at cfee0000 (32-bit, non-prefetchable) [size=128K]
Region 2: I/O ports at ac00 [size=128]
Expansion ROM at <unassigned> [disabled] [size=2K]
Capabilities: <available only to root>

#1 lore raw
Quoted 5 lines

When I start a new domain using an nbd exported device into domain0, xenlinux Oops and crashes. Nbd otherwise works fine in domain0 I can mount filesystems on it, dd them all, export them from domain0 to a new domain via nfs from domain0 also works.

You mean the domain0 oops'es, right?

There was a fix checked in earlier today that might be relevant to this. Please can you try it out.

Quoted 2 lines

With Changeset 1.1063 Xen crashes at start up only displaying the figlet banner + (Xen) Unknown Interrupt.

This bug was introduced as part on an x86_64 checkin, and was due to a gcc version incompatibility, and is believed fixed.

Ian

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com

#2 lore raw
In reply to [email protected]
Quoted 9 lines

Hi,

When I start a new domain using an nbd exported device into domain0, xenlinux Oops and crashes. Nbd otherwise works fine in domain0 I can mount filesystems on it, dd them all, export them from domain0 to a new domain via nfs from domain0 also works.

Quoted 7 lines

This is easily reproducable, with somthing like

disk = [ 'phy:/dev/xen-uml0,sda1,w' ]

Where xen-uml0 is the nbd exported device.

From what I can figure from the backtrace, it looks like the problem

is an assertion failure due to a non-atomic memory allocation request while in interrupt context.

Unfortunately the backtrace is a real mess. I might have better luck deciphering it if you can provide a link to your 'vmlinux' file.

Even better, recompile your DOM0 kernel with arch/xen/kernel/traps.c modified with 'kstack_depth_to_print' changed to a larger value like
240. This will give a fuller stack backtrace (it's currently less useful because it's truncated). Then provide the backtrace and the vmlinux file.

Quoted 2 lines

With Changeset 1.1063 Xen crashes at start up only displaying the figlet banner + (Xen) Unknown Interrupt.

I fixed this earlier today.

-- Keir

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com