kernel-ark/arch
Andi Kleen 607a168583 [PATCH] x86_64: Fix 32bit system call restart
The test case at
http://cvs.sourceforge.net/viewcvs.py/posixtest/posixtestsuite/conforman
ce/interfaces/clock_nanosleep/1-5.c fails if it runs as a 32bit process on
x86_86 machines.

The root cause is the sub 32bit process fails to restart the syscall after it
is interrupted by a signal.

The syscall number of sys_restart_syscall in table sys_call_table is
__NR_restart_syscall (219) while it's __NR_ia32_restart_syscall
(0) in ia32_sys_call_table. When regs->rax==(unsigned
long)-ERESTART_RESTARTBLOCK, function do_signal doesn't distinguish if
the process is 64bit or 32bit, and always sets restart syscall number
as __NR_restart_syscall (219).

Signed-off-by: Zhang Yanmin <yanmin.zhang@intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-20 15:48:21 -07:00
..
alpha
arm
arm26
cris
frv
h8300
i386 [PATCH] i386: Fix race in iounmap 2005-05-20 15:48:20 -07:00
ia64
m32r
m68k
m68knommu
mips
parisc
ppc [PATCH] ppc32: fix CONFIG_TASK_SIZE handling on 44x 2005-05-20 15:48:19 -07:00
ppc64
s390
sh
sh64
sparc
sparc64 [SPARC64]: Fix bad performance side effect of strbuf timeout changes. 2005-05-20 11:40:32 -07:00
um [PATCH] uml: Change printf to printk in console driver 2005-05-20 15:48:19 -07:00
v850
x86_64 [PATCH] x86_64: Fix 32bit system call restart 2005-05-20 15:48:21 -07:00