From: Keith Owens <kaos@ocs.com.au>
To: "Antwerpen, Oliver" <Antwerpen@netsquare.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How to provoke kernel panic
Date: Wed, 21 Mar 2001 21:08:22 +1100 [thread overview]
Message-ID: <23971.985169302@ocs3.ocs-net> (raw)
In-Reply-To: Your message of "Wed, 21 Mar 2001 10:43:25 BST." <9DD550E9A9B0D411A16700D0B7E38BA4E67E@POL-EML-SRV1>
On Wed, 21 Mar 2001 10:43:25 +0100,
"Antwerpen, Oliver" <Antwerpen@netsquare.org> wrote:
>Could someone kindly tell me how to provoke a kernel panic? I need to do so
>for testing some applications regarding system crash awareness.
Create fs/example-module.c
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/module.h>
int init_module(void)
{
printk("module loading\n");
panic("test panic\n");
return 0;
}
Add "obj-m += example-module.o" to fs/Makefile.
make modules, insmod fs/example-module.o and watch the bits fly.
next prev parent reply other threads:[~2001-03-21 10:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-21 9:43 How to provoke kernel panic Antwerpen, Oliver
2001-03-21 10:08 ` Keith Owens [this message]
2001-03-21 13:54 ` Richard B. Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=23971.985169302@ocs3.ocs-net \
--to=kaos@ocs.com.au \
--cc=Antwerpen@netsquare.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.