crash in init_ipic_sysfs on efika
From: Olaf Hering <hidden>
Date: 2008-03-17 19:53:05
I cant reproduce this bug on my board, but: The global primary_ipic in arch/powerpc/sysdev/ipic.c can remain NULL if ipic_init() fails. init_ipic_sysfs() will crash in that case. Something like this may fix it: Index: linux-2.6.25-rc6/arch/powerpc/sysdev/ipic.c ===================================================================
--- linux-2.6.25-rc6.orig/arch/powerpc/sysdev/ipic.c
+++ linux-2.6.25-rc6/arch/powerpc/sysdev/ipic.c@@ -906,7 +906,7 @@ static int __init init_ipic_sysfs(void) { int rc; - if (!primary_ipic->regs) + if (!primary_ipic || !primary_ipic->regs) return -ENODEV; printk(KERN_DEBUG "Registering ipic with sysfs...\n");
ok boot eth:192.168.2.52,inst32 inst32 console=ttyPSC0,115200 SuSE Linux zImage starting: loaded at 00040000-00d24cbc (0/0/01003ed8; sp: 017ffe80) uncompressing ELF header done. (00000100 bytes) Allocated 008584d4 bytes for kernel @ 02000000 Allocated 00a963a2 bytes for initrd @ 02859000 uncompressing kernel done. (004faeb8 bytes) entering kernel at 02010000(2859000/a963a2/01003ed8) OF stdout device is: /failsafe command line: console=ttyPSC0,115200 memory layout at init: alloc_bottom : 032f0000 alloc_top : 30000000 alloc_top_hi : f000c000 rmo_top : 30000000 ram_top : f000c000 Looking for displays instantiating rtas at 0x07ffb000 ... done Applying EFIKA device tree fixups Fixing bestcomm interrupts property Adding Ethernet MDIO node Adding Ethernet PHY node copying OF device tree ... Building dt strings... Building dt structure... Device tree strings 0x032f1000 -> 0x032f17e0 Device tree struct 0x032f2000 -> 0x03315000 Calling quiesce ... returning from prom_init Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 113264k/131072k available (4808k kernel code, 17648k reserved, 164k data, 461k bss, 228k init) Security Framework initialized AppArmor: AppArmor initialized AppArmor: Unable to log event (1505) to audit subsys AppArmor: Registered secondary security module name="capability" AppArmor: Unable to log event (1505) to audit subsys Capability LSM initialized as secondary