Kernel Panic



/*
 *  linux/kernel/panic.c
 *
 *  Copyright (C) 1991, 1992  Linus Torvalds
 */

/*
 * This function is used through-out the kernel (including mm and fs)
 * to indicate a major problem.
 */
[..]

/*
 *
 *      panic - halt the system
[..]
 *      This function never returns.
 */

NORET_TYPE void panic(const char * fmt, ...)
{
	[..]
        printk(KERN_EMERG "Kernel panic: %s\n",buf);
	[..]

        if (panic_timeout > 0)
        {
		[..]
		machine_restart(NULL);
		[..]
	}
	[..]	
        for(;;) {
		[..]
                CHECK_EMERGENCY_SYNC
        }

}
[..]


   
  Kernel-2.4.20
   
./fs/ntfs/fs.c:798: // FIXME: Should we panic() at this stage?
./mm/oom_kill.c:175: /* Found nothing?!?! Either we hang forever, or we panic. */
./net/ipv4/netfilter/ipfwadm_core.c:972: * Should be panic but... (Why ??? - AC)
./net/ipv4/netfilter/ipfwadm_core.c:1090: * Should be panic but... (Why are BSD people panic obsessed ??)
./arch/arm/kernel/traps.c:520: panic("Oops failed to kill thread");
./arch/ppc/mm/mem_pieces.c:92: panic("eek... mem_pieces overflow");
./arch/ppc/platforms/pmac_setup.c:835: panic("No RAM??");
./arch/ppc/8xx_io/commproc.c:107: panic("Huh? No CPM host page?");
./arch/i386/kernel/visws_apic.c:189: panic("huh?");
./arch/cris/drivers/serial.c:46: * we panic(), and die a horrible death...
./arch/ia64/sn/io/hcl.c:1277: printk("Should panic here ... !\n");
./arch/ia64/sn/io/ml_SN_init.c:201: panic("xxx");
./arch/ia64/ia32/sys_ia32.c:3962: panic("The problem is here...");
./arch/mips/mm/loadmmu.c:134: panic("Yeee, unsupported mmu/cache architecture.");
./arch/mips/mm/init.c:77: panic("Oh boy, that early out of memory?");
./arch/parisc/kernel/smp.c:499: panic("smp_callin() AAAAaaaaahhhh....\n");
./drivers/scsi/aha1542.c:444: panic("Splunge!");
./drivers/scsi/qla1280.c:6739: panic("Ooops");
./kernel/exit.c:430: panic("Aiee, killing interrupt handler!");
./arch/mips64/mm/tlb-dbg-r4k.c:27: panic(__FUNCTION__ " called. This Does Not Happen (TM).");
./arch/mips/kernel/i8259.c:267: panic("i8259_do_irq: I want to be implemented");
./arch/sparc64/kernel/starfire.c:135: panic("Lucy in the sky....");
./drivers/scsi/NCR53C9x.c:497: panic("esp: what could it be... I wonder...");
./drivers/scsi/aha1542.c:724: panic("Foooooooood fight!");
./drivers/scsi/scsi_merge.c:106: panic("Ththththaats all folks. Too dangerous to continue.\n");
./drivers/net/daynaport.c:624: panic("Detected a card I can't drive - whoops\n");
./arch/ia64/sn/kernel/sn1/error.c:107: * We need to do more than panic here, but what the heck, this is bring up.
./drivers/scsi/53c7,8xx.h:1526: /* Paranoid people could use panic() here. */
   
  Kernel-2.4.14
   
./arch/mips64/mips-boards/malta/malta_int.c:84: panic("IRQ, you lose...");
./arch/parisc/kernel/inventory.c:368: panic("This will probably never run Linux.\n");
./drivers/scsi/scsi_merge.c:824: panic("I believe this is dead code. If we hit this, I was wrong");
./arch/parisc/kernel/setup.c:267: panic ("No CPUs found. System halted.\n");
./include/asm-m68k/page.h:174: panic("BUG!");
   


Collected by Folke Ashberg