From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 21 Sep 2002 02:15:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 21 Sep 2002 02:15:09 -0400 Received: from are.twiddle.net ([64.81.246.98]:153 "EHLO are.twiddle.net") by vger.kernel.org with ESMTP id ; Sat, 21 Sep 2002 02:15:09 -0400 Date: Fri, 20 Sep 2002 23:19:46 -0700 From: Richard Henderson To: george anzinger Cc: Mikael Pettersson , Daniel Jacobowitz , Brian Gerst , Petr Vandrovec , "Richard B. Johnson" , dvorak , linux-kernel@vger.kernel.org Subject: Re: Syscall changes registers beyond %eax, on linux-i386 Message-ID: <20020920231946.B27148@twiddle.net> Mail-Followup-To: george anzinger , Mikael Pettersson , Daniel Jacobowitz , Brian Gerst , Petr Vandrovec , "Richard B. Johnson" , dvorak , linux-kernel@vger.kernel.org References: <24181C771D3@vcnet.vc.cvut.cz> <3D8A11BB.4090100@didntduck.org> <20020919192434.GA3286@nevyn.them.org> <15754.12963.763811.307755@kim.it.uu.se> <3D8ADD05.999E4A5C@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D8ADD05.999E4A5C@mvista.com>; from george@mvista.com on Fri, Sep 20, 2002 at 01:32:05AM -0700 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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. r~