I insmod
a kernel module on ARM platform and I get a kernel panic which causes this three errors to be printed to screen
Unhandled fault: external abort on non-linefetch (0x008)
Unhandled fault: imprecise external abort (0xc06)
Kernel panic - not syncing: Fatal exception in interrupt
3
mean It sounds like scheduling while atomic but there is
no such thing in a kernel module.?The values in parenthesis are the ifsr
(instruction fault status) register. There are many causes for aborts and these give a specific cause. There are some tables in the kernel that handle particular fault causes and other have a handler which does a printk
and aborts a task or can panic()
the kernel. See: arm/mm/fault.c. The value is probably not valuable unless you are developing a fault handler. Although it can give an idea of what the fault is about, it is better just to get the PC
and look at the code at that address (which I think was already printed?).
These faults can occur anywhere; in a user task, a kernel task or an interrupt
handler, etc. Since your interrupt
handler has crashed, Linux decides to stop everything and not bother proceeding. Otherwise, you could corrupts disks (even more), etc.
Note: Each fault status register has an abort.S file which is different for the particular ARM CPU. For example see abort-ev7.S v7_early_abort
. This is put in a processor table which is matched at boot time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With