public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How to crash a system and take a dump?
@ 2002-02-04 11:26 sathish jayapalan
  2002-02-04 12:31 ` Gianni Tedesco
  2002-02-04 13:32 ` Suparna Bhattacharya
  0 siblings, 2 replies; 6+ messages in thread
From: sathish jayapalan @ 2002-02-04 11:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: sathish_jayapalan

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.

Thanks in advance,
sathish




__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: How to crash a system and take a dump?
@ 2002-02-04 11:40 Alexander Sandler
  2002-02-05  2:32 ` Philippe Troin
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Sandler @ 2002-02-04 11:40 UTC (permalink / raw)
  To: 'sathish jayapalan', linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="x-user-defined", Size: 625 bytes --]

> 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: How to crash a system and take a dump?
@ 2002-02-05 18:50 Alexander Sandler
  0 siblings, 0 replies; 6+ messages in thread
From: Alexander Sandler @ 2002-02-05 18:50 UTC (permalink / raw)
  To: 'Philippe Troin'; +Cc: Linux Kernel Mailing List (E-mail)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="x-user-defined", Size: 216 bytes --]

This one is too genious to be found right away ;)

> Simplier: insmod this module:
> 
> #include <linux/module.h>
> 
> int init_module()
> {
>    panic("Forcing panic");
> }
> 
> int cleanup_module()
> {
> }

Sasha.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-02-05 18:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-04 11:26 How to crash a system and take a dump? sathish jayapalan
2002-02-04 12:31 ` Gianni Tedesco
2002-02-04 13:32 ` Suparna Bhattacharya
  -- strict thread matches above, loose matches on Subject: below --
2002-02-04 11:40 Alexander Sandler
2002-02-05  2:32 ` Philippe Troin
2002-02-05 18:50 Alexander Sandler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox