Re: Syscall changes registers beyond %eax, on linux-i386

From: george anzinger (
Date: Sat Sep 21 2002 - 03:09:12 EST

Richard Henderson wrote:
> On Fri, Sep 20, 2002 at 01:32:05AM -0700, george anzinger wrote:
> > So, is there a problem? Yes, neither the call stub macros
> > in asm/unistd.h nor those in glibc bother to list the used
> > registers beyond the third ":".
> No, this is not the real problem. The real problem is that if
> the program receives a signal during a system call, the kernel
> will return all the way up to entry.S, deliver the signal and
> then restart the syscall.
> Except the syscall will restart with the corrupted registers.
> Hilarity ensues.
I submit that BOTH of these are problems. And only the
kernel can fix the latter.


George Anzinger
Preemption patch:
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Sep 23 2002 - 22:00:33 EST