ptrace and ORIG_EAX register

Taral (taral@taral.net)
Sat, 30 Oct 1999 20:04:01 -0500 (CDT)


Is there a specific reason for this code?

arch/i386/kernel/ptrace.c:288-293 [kernel 2.2.13]

static int putreg(struct task_struct *child,
unsigned long regno, unsigned long value)
{
switch (regno >> 2) {
--> case ORIG_EAX:
--> return -EIO;

It prevents me from using ptrace() to override a syscall :(

Taral
-- Please send replies to both list and sender.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/