lkml.org 
[lkml]   [2006]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH RFC 4/6] Fix places where using %gs changes the usermode ABI.
Date

> ===================================================================
> --- a/arch/i386/kernel/ptrace.c
> +++ b/arch/i386/kernel/ptrace.c
> @@ -94,13 +94,9 @@ static int putreg(struct task_struct *ch
> return -EIO;
> child->thread.fs = value;
> return 0;
> - case GS:
> - if (value && (value & 3) != 3)
> - return -EIO;
> - child->thread.gs = value;
> - return 0;
> case DS:
> case ES:
> + case GS:
> if (value && (value & 3) != 3)
> return -EIO;
> value &= 0xffff;
> @@ -132,8 +128,6 @@ static unsigned long getreg(struct task_
> retval = child->thread.fs;
> break;
> case GS:
> - retval = child->thread.gs;
> - break;

Didn't the eip/esp offsets change too?

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

\
 
 \ /
  Last update: 2006-08-27 18:07    [W:0.807 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site