From: "Randy.Dunlap" <rddunlap@osdl.org>
To: "Kim, Hyunchul" <kimhc@inzen.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: When does a general protection fault occur?
Date: Wed, 17 Sep 2003 08:11:06 -0700 [thread overview]
Message-ID: <20030917081106.6fd35ade.rddunlap@osdl.org> (raw)
In-Reply-To: <001801c37ce8$85712eb0$0122030a@kimhc>
On Wed, 17 Sep 2003 15:54:20 +0900 "Kim, Hyunchul" <kimhc@inzen.com> wrote:
|
| Hi all,
|
| I'm studying non-executable stack patch.
| It modified do_general_protection(), the general protection fault
| handler(?).
| I wanna know when the handler is called, or where could I find it.
See Intel or AMD developer manuals for GP faults/exceptions.
You can use something like this to find do_general_protection:
$ find . -name \*\.[hcS] | xargs grep -n do_general_protection
and learn that it is in (this is from 2.6.0-test4):
./arch/i386/kernel/traps.c:420:asmlinkage void do_general_protection(struct pt_regs * regs, long error_code)
and
./arch/x86_64/kernel/traps.c:456:asmlinkage void do_general_protection(struct pt_regs * regs, long error_code)
--
~Randy
prev parent reply other threads:[~2003-09-17 15:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-17 6:54 Kim, Hyunchul
2003-09-17 15:11 ` Randy.Dunlap [this message]
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=20030917081106.6fd35ade.rddunlap@osdl.org \
--to=rddunlap@osdl.org \
--cc=kimhc@inzen.com \
--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 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®