xen guest kernel bug: 'kernel BUG at /build/buildd/linux-2.6.24/debian/build/custom-source-xen/drivers/xen/netfront/netfront.c:785'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Hardy |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[root@pps0355 ~]# xm create -c /etc/xen/pps-x12
Using config file "/etc/xen/pps-x12".
Started domain pps-x12
[ 0.000000] Linux version 2.6.24-16-xen (buildd@yellow) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Thu Apr 10 14:35:03 UTC 2008 (Ubuntu 2.6.24-4.6-generic)
[ 0.000000] Command line: root=/dev/sda1 ro console=/dev/xvc0
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] Xen: 0000000000000000 - 0000000010800000 (usable)
[ 0.000000] end_pfn_map = 67584
[2311650.315719] Zone PFN ranges:
[2311650.315721] DMA 0 -> 4096
[2311650.315724] DMA32 4096 -> 1048576
[2311650.315725] Normal 1048576 -> 1048576
[2311650.315727] Movable zone start PFN for each node
[2311650.315728] early_node_map[1] active PFN ranges
[2311650.315730] 0: 0 -> 67584
[2311650.326160] No mptable found.
[2311650.326947] PERCPU: Allocating 22368 bytes of per cpu data
[2311650.326972] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 66660
[2311650.326977] Kernel command line: root=/dev/sda1 ro console=/dev/xvc0
[2311650.327623] Initializing CPU#0
[2311650.327799] PID hash table entries: 2048 (order: 11, 16384 bytes)
[2311650.327835] Xen reported: 1992.446 MHz processor.
[ 0.026270] console [xvc-1] enabled
[ 0.026309] Console: colour dummy device 80x25
[ 0.026603] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.026842] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.026906] Software IO TLB disabled
[ 0.029575] Memory: 232180k/270336k available (2530k kernel code, 29616k reserved, 1329k data, 220k init)
[ 0.092349] Calibrating delay using timer specific routine.. 3988.62 BogoMIPS (lpj=7977259)
[ 0.092429] Security Framework initialized
[ 0.092441] SELinux: Disabled at boot.
[ 0.092451] AppArmor: AppArmor initialized
[ 0.092456] Failure registering capabilities with primary security module.
[ 0.092483] Mount-cache hash table entries: 256
[ 0.092653] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
[ 0.092657] CPU: L2 Cache: 1024K (64 bytes/line)
[ 0.092677] SMP alternatives: switching to UP code
[ 0.093284] Freeing SMP alternatives: 23k freed
[ 0.093435] Early unpacking initramfs... done
[ 0.112929] Brought up 1 CPUs
[ 0.113630] net_namespace: 120 bytes
[ 0.113635] failed to set up cpufreq notifier
[ 0.132384] Time: 165:165:165 Date: 165/165/65
[ 0.132421] NET: Registered protocol family 16
[ 0.133845] Brought up 1 CPUs
[ 0.133863] PCI: Fatal: No config space access function found
[ 0.133866] PCI: setting up Xen PCI frontend stub
[ 0.134578] ACPI: Interpreter disabled.
[ 0.134584] Linux Plug and Play Support v0.97 (c) Adam Belay
[ 0.134622] pnp: PnP ACPI: disabled
[ 0.135046] xen_mem: Initialising balloon driver.
[ 0.136382] Setting mem allocation to 262144 kiB
[ 0.136682] PCI: System does not support PCI
[ 0.136687] PCI: System does not support PCI
[ 0.138848] NET: Registered protocol family 8
[ 0.138853] NET: Registered protocol family 20
[ 0.138936] AppArmor: AppArmor Filesystem Enabled
[ 0.139338] NET: Registered protocol family 2
[ 0.139351] Time: xen clocksource has been installed.
[ 0.170880] IP route cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.171086] TCP established hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.171256] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.171426] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.171432] TCP reno registered
[ 0.182943] checking if image is initramfs... it is
[ 0.203821] Freeing initrd memory: 18972k freed
[ 0.217541] audit: initializing netlink socket (disabled)
[ 0.217565] audit(120834013
[ 0.217759] VFS: Disk quotas dquot_6.5.1
[ 0.217786] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.217873] io scheduler noop registered
[ 0.217877] io scheduler anticipatory registered
[ 0.217879] io scheduler deadline registered
[ 0.217887] io scheduler cfq registered (default)
[ 0.218105] Xen virtual console successfully installed as xvc0
[ 0.218158] Event-channel device installed.
[ 0.226820] Successfully initialized TPM backend driver.
[ 0.237186] netfront: Initialising virtual ethernet driver.
[ 0.238033] xen-vbd: registered block device major 8
[ 0.267152] rtc: IRQ 8 is not free.
[ 0.267256] Linux agpgart interface v0.102
[ 0.267852] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize
[ 0.267934] input: Macintosh mouse button emulation as /devices/
[ 0.268076] PNP: No PS/2 controller found. Probing ports directly.
[ 0.268920] i8042.c: No controller found.
[ 0.274923] mice: PS/2 mouse device common for all mice
[ 0.274961] cpuidle: using governor ladder
[ 0.275048] NET: Registered protocol family 1
[ 0.275120] registered taskstats version 1
[ 0.275143] Magic number: 1:252:3141
[ 0.275293] /build/
[ 0.275307] Freeing unused kernel memory: 220k freed
Loading, please wait...
Begin: Loading essential drivers... ...
[ 0.583333] thermal: Unknown symbol acpi_processor_
Done.
Begin: Running /scripts/
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
Done.
Begin: Waiting for root file system... ...
Done.
Begin: Running /scripts/
Done.
[ 1.119322] kjournald starting. Commit interval 5 seconds
[ 1.119355] EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/
Done.
Done.
Begin: Running /scripts/
Done.
* Setting preliminary keymap... [ OK ]
* Setting the system clock
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
* Unable to set System Clock to: Wed Apr 16 10:02:16 UTC 2008
* Starting basic networking... [ OK ]
* Starting kernel event manager... [ OK ]
* Loading hardware drivers... [ 4.433282] ------------[ cut here ]------------
[ 4.433302] kernel BUG at /build/
[ 4.433307] invalid opcode: 0000 [1] SMP
[ 4.433311] CPU 0
[ 4.433314] Modules linked in: evdev ext3 jbd mbcache
[ 4.433322] Pid: 2329, comm: ifconfig Not tainted 2.6.24-16-xen #1
[ 4.433325] RIP: e030:[<
[ 4.433339] RSP: e02b:ffff88000f
[ 4.433342] RAX: ffff880010700580 RBX: ffff88000e58acc0 RCX: 0000000000000000
[ 4.433345] RDX: ffff88000fc38000 RSI: 0000000000000000 RDI: 0000000000000240
[ 4.433348] RBP: 0000000000000000 R08: 0000000000000011 R09: 0000000000000000
[ 4.433351] R10: 0000000000000000 R11: 0000000000000000 R12: ffff88000fc38700
[ 4.433354] R13: 0000000000000240 R14: 0000000000000000 R15: ffff88000fc38868
[ 4.433362] FS: 00007f281b6216e
[ 4.433365] CS: e033 DS: 0000 ES: 0000
[ 4.433367] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 4.433371] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000000
[ 4.433374] Process ifconfig (pid: 2329, threadinfo ffff88000fea0000, task ffff880010705800)
[ 4.433377] Stack: 0000000000000000 ffff88000fc39ce0 ffff88000fc38000 0000880000000100
[ 4.433384] 00000001ffffffff ffff88000fc38740 ffff88000ee9f000 0000000180282166
[ 4.433390] 00ff880010440cc0 0000000000000000 ffff880000000000 000000000000002d
[ 4.433395] Call Trace:
[ 4.433400] [<ffffffff8039d
[ 4.433406] [<ffffffff803f4
[ 4.433409] [<ffffffff803f3
[ 4.433415] [<ffffffff80444
[ 4.433420] [<ffffffff803e4
[ 4.433425] [<ffffffff802ab
[ 4.433428] [<ffffffff802ab
[ 4.433433] [<ffffffff8029b
[ 4.433437] [<ffffffff802ab
[ 4.433442] [<ffffffff8020c
[ 4.433445] [<ffffffff8020c
[ 4.433448]
[ 4.433449]
[ 4.433449] Code: 0f 0b eb fe 0f 0b eb fe c7 44 24 3c 00 00 00 00 e9 58 ff ff
[ 4.433464] RIP [<ffffffff8039a
[ 4.433469] RSP <ffff88000fea1d08>
[ 4.433481] ---[ end trace 817b38e10754b0a4 ]---
[ 4.433487] Kernel panic - not syncing: Aiee, killing interrupt handler!
[root@pps0355 ~]# uname -a
Linux pps0355.
host is Scientific Linux (I assume the Centos host would give the same bug)
[root@pps0355 ~]# cat /etc/redhat-release
Scientific Linux SL release 5.1 (Boron)
[root@pps0355 ~]# rpm -qa | grep kernel
kernel-
kernel-
[root@pps0355 ~]# rpm -qa | grep linux
util-linux-
libselinux-
[root@pps0355 ~]# rpm -qa | grep xen
kernel-
kernel-
xen-libs-
xen-3.0.3-41.el5
[root@pps0355 ~]# cat /etc/xen/pps-x12 | grep -v ^# | grep -v ^$
ramdisk = '/var/lib/
kernel = '/var/lib/
memory = '256'
root = '/dev/sda1 ro console=/dev/xvc0 '
disk = [ 'phy:data/
name = 'pps-x12'
vif = [ 'bridge=xenbr1' ]
[root@pps0355 ~]# xm info
host : pps0355.
release : 2.6.18-
version : #1 SMP Wed Mar 5 10:26:35 EST 2008
machine : x86_64
nr_cpus : 2
nr_nodes : 1
sockets_per_node : 2
cores_per_socket : 1
threads_per_core : 1
cpu_mhz : 1992
hw_caps : 078bfbff:
total_memory : 2047
free_memory : 1493
xen_major : 3
xen_minor : 1
xen_extra : .0-53.1.14.el5
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p
xen_pagesize : 4096
platform_params : virt_start=
xen_changeset : unavailable
cc_compiler : gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)
cc_compile_by : brewbuilder
cc_compile_domain : (none)
cc_compile_date : Wed Mar 5 10:05:28 EST 2008
xend_config_format : 2
description: | updated |
Changed in linux: | |
assignee: | timg-tpi → nobody |
status: | In Progress → Fix Released |
assignee: | timg-tpi → nobody |
This is a ciritical problem for Xen users. binary- custom. d/xen/patchset in the source tree.
The attachment is the patch for hardy's broken Xen netfront driver.
This fixes the duplicated memory allocation on the older Xen hypervisors,
and enables NAPI for correct message receiving.
Put this under debian/