3.15-rc3: boot of a xen PV guest fails when using a guest kernel with CONFIG_DEBUG_SLAB=y

From: Sander Eikelenboom
Date: Fri May 02 2014 - 17:01:45 EST


Hi,

On a machine running Xen-Unstable, i just tried running a 3.15-rc3 kernel with
CONFIG_DEBUG_SLAB=y

Dom0 boots fine, but a PV guest fails to boot with the kernel panic below.

.config attached

--
Sander


[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.15.0-rc3-20140502-nbdebug12-slabdb+ (root@serveerstertje) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Fri May 2 22:26:31 CEST 2014
[ 0.000000] Command line: root=/dev/xvda1 ro
[ 0.000000] ACPI in unprivileged domain disabled
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] Xen: [mem 0x0000000000000000-0x000000000009ffff] usable
[ 0.000000] Xen: [mem 0x00000000000a0000-0x00000000000fffff] reserved
[ 0.000000] Xen: [mem 0x0000000000100000-0x000000000fffffff] usable
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] MPS support code is not built-in.
[ 0.000000] Using acpi=off or acpi=noirq or pci=noacpi may have problem
[ 0.000000] DMI not present or invalid.
[ 0.000000] No AGP bridge found
[ 0.000000] e820: last_pfn = 0x10000 max_arch_pfn = 0x400000000
[ 0.000000] Scanning 1 areas for low memory corruption
[ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[ 0.000000] init_memory_mapping: [mem 0x0fe00000-0x0fffffff]
[ 0.000000] init_memory_mapping: [mem 0x0c000000-0x0fdfffff]
[ 0.000000] init_memory_mapping: [mem 0x00100000-0x0bffffff]
[ 0.000000] RAMDISK: [mem 0x0327d000-0x0409cfff]
[ 0.000000] NUMA turned off
[ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x00000000-0x0fffffff]
[ 0.000000] NODE_DATA [mem 0x0ff9d000-0x0ffa7fff]
[ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] No local APIC present
[ 0.000000] APIC: disable apic facility
[ 0.000000] APIC: switched to apic NOOP
[ 0.000000] e820: [mem 0x10000000-0xffffffff] available for PCI devices
[ 0.000000] Booting paravirtualized kernel on Xen
[ 0.000000] Xen version: 4.5-unstable (preserve-AD)
[ 0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 29 pages/cpu @ffff88000fc00000 s87488 r8192 d23104 u2097152
[ 0.000000] Kernel command line: root=/dev/xvda1 ro
[ 0.000000] PID hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.000000] Checking aperture...
[ 0.000000] No AGP bridge found
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[ 0.000000] Additional per-CPU info printed with stalls.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS:4352 nr_irqs:256 16
[ 0.000000] xen:events: Using FIFO-based ABI
[ 0.000000] kmemleak: Kernel memory leak detector disabled
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] console [tty0] enabled
[ 0.000000] console [hvc0] enabled
[ 0.000000] installing Xen timer for CPU 0
[ 0.000000] tsc: Detected 3200.148 MHz processor
[ 0.003333] Calibrating delay loop (skipped), value calculated using timer frequency.. 6402.97 BogoMIPS (lpj=10667160)
[ 0.003333] pid_max: default: 32768 minimum: 301
[ 0.003333] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.003333] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.003333] Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.003333] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.003333] Initializing cgroup subsys freezer
[ 0.003333] Initializing cgroup subsys blkio
[ 0.003333] CPU: Physical Processor ID: 0
[ 0.003333] CPU: Processor Core ID: 4
[ 0.003333] Last level iTLB entries: 4KB 512, 2MB 16, 4MB 8
[ 0.003333] Last level dTLB entries: 4KB 512, 2MB 128, 4MB 64, 1GB 0
[ 0.003333] tlb_flushall_shift: 6
[ 0.043044] debug: unmapping init [mem 0xffffffff824c7000-0xffffffff824cffff]
[ 0.043857] ftrace: allocating 38502 entries in 151 pages
[ 0.054940] Performance Events:
[ 0.054957] no APIC, boot with the "lapic" boot parameter to force-enable it.
[ 0.054963] no hardware sampling interrupt available.
[ 0.054988] Failed to access perfctr msr (MSR c0010004 is 0)
[ 0.056410] x86: Booted up 1 node, 1 CPUs
[ 0.056666] NMI watchdog: disabled (cpu0): hardware events not enabled
[ 0.057392] devtmpfs: initialized
[ 0.066079] xor: measuring software checksum speed
[ 0.096669] prefetch64-sse: 5442.000 MB/sec
[ 0.130002] generic_sse: 4474.800 MB/sec
[ 0.130015] xor: using function: prefetch64-sse (5442.000 MB/sec)
[ 0.130837] NET: Registered protocol family 16
[ 0.130932] xen:grant_table: Grant tables using version 1 layout
[ 0.134287] PCI: setting up Xen PCI frontend stub
[ 0.380164] ACPI: Interpreter disabled.
[ 0.380360] xen:balloon: Initialising balloon driver
[ 0.398654] xen_balloon: Initialising balloon driver
[ 0.400088] vgaarb: loaded
[ 0.400899] SCSI subsystem initialized
[ 0.401997] usbcore: registered new interface driver usbfs
[ 0.402222] usbcore: registered new interface driver hub
[ 0.402514] usbcore: registered new device driver usb
[ 0.403032] Linux video capture interface: v2.00
[ 0.403301] pps_core: LinuxPPS API ver. 1 registered
[ 0.403308] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@xxxxxxxx>
[ 0.403333] PTP clock support registered
[ 0.404282] Advanced Linux Sound Architecture Driver Initialized.
[ 0.404298] PCI: System does not support PCI
[ 0.406584] Bluetooth: Core ver 2.19
[ 0.406666] NET: Registered protocol family 31
[ 0.406666] Bluetooth: HCI device and connection manager initialized
[ 0.410064] Bluetooth: HCI socket layer initialized
[ 0.410097] Bluetooth: L2CAP socket layer initialized
[ 0.410178] Bluetooth: SCO socket layer initialized
[ 0.415333] Switched to clocksource xen
[ 0.523441] FS-Cache: Loaded
[ 0.523576] pnp: PnP ACPI: disabled
[ 0.545075] NET: Registered protocol family 2
[ 0.546006] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.546204] TCP bind hash table entries: 2048 (order: 5, 131072 bytes)
[ 0.546312] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.546434] TCP: reno registered
[ 0.546498] UDP hash table entries: 256 (order: 3, 40960 bytes)
[ 0.546589] UDP-Lite hash table entries: 256 (order: 3, 40960 bytes)
[ 0.547145] NET: Registered protocol family 1
[ 0.547737] Trying to unpack rootfs image as initramfs...
[ 0.632792] debug: unmapping init [mem 0xffff88000327d000-0xffff88000409cfff]
[ 0.748092] swapper/0 invoked oom-killer: gfp_mask=0x2040d0, order=1, oom_score_adj=0
[ 0.748135] swapper/0 cpuset=/ mems_allowed=0
[ 0.748282] [ pid ] uid tgid total_vm rss nr_ptes swapents oom_score_adj name
[ 0.748297] Kernel panic - not syncing: Out of memory and no killable processes...
[ 0.748297]
[ 0.748305] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.15.0-rc3-20140502-nbdebug12-slabdb+ #1
[ 0.748310] 00000000002040d0 ffff88000ee9fa48 ffffffff81b8da66 ffff88000ee9c010
[ 0.748317] ffffffff81f5a8a0 ffff88000ee9fac8 ffffffff81b89bfb 0000000000000000
[ 0.748325] ffffffff00000008 ffff88000ee9fad8 ffff88000ee9fa78 ffffffff811952fa
[ 0.748332] Call Trace:
[ 0.748336] [<ffffffff81b8da66>] dump_stack+0x46/0x58
[ 0.748340] [<ffffffff81b89bfb>] panic+0xd2/0x207
[ 0.748345] [<ffffffff811952fa>] ? out_of_memory+0x39a/0x5a0
[ 0.748350] [<ffffffff811954fe>] out_of_memory+0x59e/0x5a0
[ 0.748354] [<ffffffff811951c0>] ? out_of_memory+0x260/0x5a0
[ 0.748359] [<ffffffff81116ddc>] ? lock_release+0x13c/0x2a0
[ 0.748364] [<ffffffff8119af20>] __alloc_pages_nodemask+0xa50/0xaf0
[ 0.748370] [<ffffffff811e037e>] kmem_getpages+0x8e/0x190
[ 0.748374] [<ffffffff811e3713>] fallback_alloc+0x233/0x330
[ 0.748379] [<ffffffff811e33f1>] ? ____cache_alloc_node+0xc1/0x1b0
[ 0.748384] [<ffffffff811e037e>] ? kmem_getpages+0x8e/0x190
[ 0.748389] [<ffffffff8111068e>] ? trace_hardirqs_off_caller+0x8e/0x160
[ 0.748395] [<ffffffff811e33f1>] ____cache_alloc_node+0xc1/0x1b0
[ 0.748400] [<ffffffff814f1694>] ? dma_debug_init+0x214/0x2f0
[ 0.748405] [<ffffffff811e3b78>] kmem_cache_alloc_trace+0x2a8/0x2d0
[ 0.748410] [<ffffffff814f1694>] dma_debug_init+0x214/0x2f0
[ 0.748414] [<ffffffff82355635>] ? memblock_find_dma_reserve+0x139/0x139
[ 0.748419] [<ffffffff8235564c>] pci_iommu_init+0x17/0x54
[ 0.748424] [<ffffffff81002192>] do_one_initcall+0x112/0x180
[ 0.748429] [<ffffffff8234a163>] kernel_init_freeable+0x204/0x298
[ 0.748434] [<ffffffff82349906>] ? do_early_param+0x8c/0x8c
[ 0.748438] [<ffffffff810f8e14>] ? finish_task_switch+0x84/0x100
[ 0.748443] [<ffffffff81b83870>] ? rest_init+0xc0/0xc0
[ 0.748447] [<ffffffff81b8387e>] kernel_init+0xe/0xf0
[ 0.748452] [<ffffffff81b98cfc>] ret_from_fork+0x7c/0xb0
[ 0.748456] [<ffffffff81b83870>] ? rest_init+0xc0/0xc0

Attachment: .config
Description: Binary data