0
votes

In my development environment, I am getting a kernel oops. Someone suggested that one of my Daemon is making a kernel oops.

This is quite intriguing to me. By definition (http://en.wikipedia.org/wiki/Linux_kernel_oops) :

   "oops is a deviation from correct behavior of the Linux kernel - one which produces a certain error log "

Hence the exception would be in the Kernel code. I did some more search but could not find an exact answer.

Could someone please clarify, whether kernel oops can be made by any user process?

P.S. : I understand that kernel code is executing in some user process context ( after context switch ) but after context switch its the kernel code which is executing & not the user process code.

2

2 Answers

2
votes

They can trigger an oops in the kernel. Theoretically this should not be possible, as a user space process should not be able to crash or force the kernel into a code path that causes a kernel oops.

However there might be bugs in the kernel that enables a user space process to trigger an oops. i.e. if your process causes a kernel oops, there's a bug in the kernel, or your process is making the kernel interact with faulty hardware

0
votes

Any code to run in the kernel can only happen if the user does a system call or either there is a hardware /software interrupt.

So kernel oops will happen either through user process