Hi,
The test case x86_64-cs will fail in utrace-patched kernel(2.6.26/x86),
also vanilla kernel.
[tests]$ ./x86_64-cs
./x86_64-cs: WIFSTOPPED - WSTOPSIG = 4
x86_64-cs: x86_64-cs.c:160: main: Assertion `0' failed.
Aborted
Related piece of the testcase:
# ifdef __i386__
/* Resuming with the bad %cs value causes a SIGSEGV. */
if (WSTOPSIG (status) == SIGSEGV)
return 0;
# endif
# ifdef __x86_64__
/* The %cs value is actually ignored on 64-bit, so it should be
happy. */
if (WSTOPSIG (status) == SIGUSR2)
return 0;
# endif
fprintf (stderr, "%s: WIFSTOPPED - WSTOPSIG = %d\n",
argv[0], (int) WSTOPSIG (status));
assert (0);
In fact WSTOPSIG(status) will return SIGILL in x86.
Regards,
Wenji