[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Generate Kernel PANIC and OOPS



Hi,
     I found this bit in Beginning Linux programming...
To generate an oops

create a module.... and in the init function.....


int init_module(void)
{
     /* deferencing a null pointer */
     *(int*)0 = 1 ;
     return 0;
}

the kernel will generate an oops when you insert this module.

Cya,


Sojan


Rohit Singh <rohitsingh@xxxxxxxxxxxxxxx> on 03/30/2000 02:45:53 PM

Please respond to linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx

To:   li <linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx>
cc:    (bcc: Sojan James/India/IBM)
Subject:  [LIP] Generate Kernel PANIC and OOPS




Hi all!

Can someone tell me how I can generate :

#1) Kernel PANIC
#2) OOPS

Pointers to code/modules will be great!
Thanks,
Rohit



--
Hi! How are things going?
     (just fine, thank you...)
Great! Say, could I bother you for a question?
     (you just asked one...)
Well, how about one more?
     (one more than the first one?)
Yes.
     (you already asked that...)
[at this point, Alphonso gets smart...   ]
May I ask two questions, sir?
     (no.)
May I ask ONE then?
     (nope...)
Then may I ask, sir, how I may ask you a question?
     (yes, you may.)
Sir, how may I ask you a question?
     (you must ask for retroactive question asking privileges for
      the number of questions you have asked, then ask for that
      number plus two, one for the current question, and one for the
      next one)
Sir, may I ask nine questions?
     (go right ahead...)
===========================================================
       R o h i t   R o m e h a r s h a n   S i n g h
                    http://www.rohit.cx
     WORK:rohitsingh@xxxxxxxxxxxxxxx PLAY:rohit@xxxxxxxx

-----------------------------------------------------------------------
The LIP mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers