lkml.org 
[lkml]   [2003]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH] Pentium Pro - sysenter - doublefault
Date
did you notice the announcement from www.apache.org and www.debian.org?

-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Jamie Lokier
Sent: Wednesday, August 27, 2003 10:01 PM
To: Jim Houston; linux-kernel@vger.kernel.org; jim.houston@ccur.com
Subject: Re: [PATCH] Pentium Pro - sysenter - doublefault


Richard Curnow wrote:
> OK, since I get something different to the other reports I saw:
>
> 1:20PM-malvern-0-534-% ./sysenter 1:20PM-malvern-STKFLT-535-% echo
> $? 144

Hi Richard,

That's because you ran it on a 2.5/2.6 kernel, right? The test code is
meant for 2.4 kernels and earlier :)

Here is a more universal test:

int main () {
asm ("movl %%esp,%%ebp;sysenter" : : "a" (1), "b" (0));
return 0;
}

I expect it to do the first of these which is applicable:

- raise SIGILL on Pentium and earlier Intel CPUs
- raise SIGILL on non-Intel CPUs which don't have the SEP
capability
- raise SIGSEGV on Pentium Pro CPUs
- raise SIGSEGV on Pentium II CPUs with model == 3 and stepping
< 3
- raise SIGSEGV on 2.4 kernels
- exit with status 0 on 2.6 kernels

Enjoy,
-- Jamie
-
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/

-
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: 2005-03-22 13:48    [W:0.082 / U:0.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site