mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* When does a general protection fault occur?
@ 2003-09-17  6:54 Kim, Hyunchul
  2003-09-17 15:11 ` Randy.Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Kim, Hyunchul @ 2003-09-17  6:54 UTC (permalink / raw)
  To: linux-kernel


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.
 
Thanks in advance.
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: When does a general protection fault occur?
  2003-09-17  6:54 When does a general protection fault occur? Kim, Hyunchul
@ 2003-09-17 15:11 ` Randy.Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy.Dunlap @ 2003-09-17 15:11 UTC (permalink / raw)
  To: Kim, Hyunchul; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-17 15:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-17  6:54 When does a general protection fault occur? Kim, Hyunchul
2003-09-17 15:11 ` Randy.Dunlap

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®