Messages in this thread | | | From | (H. Peter Anvin) | Subject | Re: novice question -- live kernel debugging? | Date | 24 Mar 1998 02:08:32 GMT |
| |
Followup to: <Pine.LNX.3.95.971205174908.101A-100000@chaos.analogic.com> By author: "Richard B. Johnson" <root@chaos.analogic.com> In newsgroup: linux.dev.kernel > > > > Could somebody direct me to the texts explaining a bit more > > about kernel debugging. I can always use printfs and I understand > > how to debug a crash dump, i.e. to find from symbol map and EIP > > the place using gdb the offending lines of code. However I can't > > find any FAQa/HOWTOs on how to debug live kernel, or at least to > > force it to crash. Could something like /dev/kmem be used? > > A user is not supposed to be able to crash the kernel. However, there > are some hooks put in so a kernel-programmer can do a few things, some > of which could crash the kernel. Loading an invalid module is one of > the things that can crash the kernel. > > You can add a new kernel function-code that will do whatever you want > after the trap to kernel-mode occurs. >
Actually, there are quite a few ways in which root can crash the system (writing to /dev/kmem is one idea.) A non-root user must not be able to crash the system, of course.
-hpa -- PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74 See http://www.zytor.com/~hpa/ for web page and full PGP public key I am Bahá'í -- ask me about it or see http://www.bahai.org/ "To love another person is to see the face of God." -- Les Misérables
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |