RE: How to crash a system and take a dump?

Alexander Sandler (ASandler@store-age.com)
Mon, 4 Feb 2002 13:40:07 +0200


> Hi,
> I have a doubt. I know that linux kernel doesn't crash
> so easily. Is there any way to panic the system? Can I
> go to the source area and insert/modify a variable in
> kernel code so that the kernel references a null
> pointer and crashes while running the kernel compiled
> with this variable. My aim is to learn crash dump
> analysis with 'Lcrash tool". Please help me out with
> this.

Go to interrupt handler (for instance in fs/buffer.c end_buffer_io_async() )
and cause segmentation fault.
System will try to kill process that caused segmentation fault and since
it's in interrupt context will panic.

Sasha.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/