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

Re: Generate Kernel PANIC and OOPS

     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.



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!

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?)
     (you already asked that...)
[at this point, Alphonso gets smart...   ]
May I ask two questions, sir?
May I ask ONE then?
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
     WORK:rohitsingh@xxxxxxxxxxxxxxx PLAY:rohit@xxxxxxxx

The LIP mailing list archives are available at: