linux-mips
[Top] [All Lists]

Re: unkillable process due to setup_frame() failure

To: ralf@linux-mips.org
Subject: Re: unkillable process due to setup_frame() failure
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Fri, 16 Sep 2005 01:17:38 +0900 (JST)
Cc: macro@linux-mips.org, linux-mips@linux-mips.org
In-reply-to: <20050907.234413.108737010.anemo@mba.ocn.ne.jp>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <Pine.LNX.4.61L.0509071011560.4591@blysk.ds.pg.gda.pl> <20050907134717.GA3493@linux-mips.org> <20050907.234413.108737010.anemo@mba.ocn.ne.jp>
Sender: linux-mips-bounce@linux-mips.org
>>>>> On Wed, 07 Sep 2005 23:44:13 +0900 (JST), Atsushi Nemoto 
>>>>> <anemo@mba.ocn.ne.jp> said:

anemo> So my "which is preferred" question was inappropriate.  I had
anemo> to ask "#1 or #2 or both or other ?"

In 2.6.14-rc1, another fix is done in arch/i386/kernel/entry.S.
It also fixes a race condition in signal delivery.

>    [PATCH] i386: Don't miss pending signals returning to user mode after 
> signal processing
>    
>    Signed-off-by: Roland McGrath <roland@redhat.com>

Let's follow.

--- linux-mips/arch/mips/kernel/entry.S 2005-03-04 22:17:29.000000000 +0900
+++ linux/arch/mips/kernel/entry.S      2005-09-16 01:04:52.365022536 +0900
@@ -105,7 +105,7 @@
        move    a0, sp
        li      a1, 0
        jal     do_notify_resume        # a2 already loaded
-       j       restore_all
+       j       resume_userspace
 
 FEXPORT(syscall_exit_work_partial)
        SAVE_STATIC

---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>