About kernel panic!
Hello, Everyone,
I think i have met lots of troubles when i am programming in the kernel, so, i want to get
some help.
One of my troubles is that, sometimes, the program can work well, but sometimes, there are
kernel panics. So, does someone else meet such questions, what is the major reasons? From the
indication of the log messages, i can find the messages on allocting the memory, i remember,
i use the kmalloc to do it, but is there something wrong?
Thanks,
Quoted 6 lines · Zhenyu Wu
Hello, Everyone,
I think i have met lots of troubles when i am programming in the kernel, so, i want to get
some help.
Quoted 7 lines
One of my troubles is that, sometimes, the program can work well, but sometimes, there are
kernel panics. So, does someone else meet such questions, what is the major reasons? From the
indication of the log messages, i can find the messages on allocting the memory, i remember, i use the kmalloc to do it, but is there something wrong?
Yes, there is something wrong with your kernel code. The oops will tell you what went wrong.
Reading Documentation/oops-tracing.txt is a good start.
Nick