mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gilad Ben-Yossef <gilad@benyossef.com>
To: Wang Hui <whui@mail.ustc.edu.cn>
Cc: ganda utama <gndutm@netscape.net>, linux-kernel@vger.kernel.org
Subject: Re: What dose 'general protection fault: 0000' mean?
Date: 11 Jun 2002 09:27:50 +0300	[thread overview]
Message-ID: <1023776870.24401.10.camel@gby.benyossef.com> (raw)
In-Reply-To: <Pine.GSO.4.31L2A.0206111326530.6179-100000@mail>

On Tue, 2002-06-11 at 08:36, Wang Hui wrote:


> > >Code: 8b 02 8b 55 08 89 02 8b 55 0c 8b 42 04 8b 55 08 89 42 04 8b
> > ><0> Kernel panic: Aiee, killing interrupt handler!
> > >In interrupt handler - not syncing
> > >
> > >==================================================
> > >
> > >I am a newbie to linux kernel hacking.  I dont know how to find out
> > >where is the fault code.  :(  Could anyone give me some hints???

> > it seems that you remove the  process that handles this
> > interupt (perhaps by using kfree). or remove the module,
> > while the kernel still think that the handler is still there...

In the /scripts directory of the Linux tree there is a small utility
that can help you grok these oopses. It is called 'ksymoops'.

> To realize the function 1, I use this tricks: I modified all the kernel's
> active network device's dev->hard_start_xmit function pointer to be my own
> function named as 'my_output_handler', and backuped the original
> 'dev->hard_start_xmit' funtion pointer witch will be called inside
> 'my_output_handler' as to send out the modified data.

Suggestion: don't change kernel primitives like this. Instead write your
code as a Netfilter/iptables module. IMHO it's more of the Right
Thing(tm) and will save you a bunch of headaches...

> ethernet device which is a realtek 8139 network card, I got kernel panic.
> I dont know what to do with it?  I guess this panic is due to something
> difference between loopback network device and the real network device
> drivers. But I dont know exactly what is wrong, or say, that what should I
> do to avoid this panic?  Any rules to write safe code here?

Only 1 rule really - what ever happens, under ANY circumstances, never
ever go chasing after the ship's cat. Remember: "In Kernel space, no one
can hear you scream." :-)

Gilad.

-- 
Gilad Ben-Yossef <gilad@benyossef.com>
http://benyossef.com
"Hail Eris! All Hail Discordia!"


  reply	other threads:[~2002-06-11  6:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3D057CDD.3070307@netscape.net>
2002-06-11  5:36 ` Wang Hui
2002-06-11  6:27   ` Gilad Ben-Yossef [this message]
2002-06-11  7:46     ` Wang Hui
2002-06-11 14:40       ` Gilad Ben-Yossef
2002-06-11  2:09 Wang Hui

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=1023776870.24401.10.camel@gby.benyossef.com \
    --to=gilad@benyossef.com \
    --cc=gndutm@netscape.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=whui@mail.ustc.edu.cn \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®