linux-mips
[Top] [All Lists]

Re: [PATCH] MIPS: Use force_sig when handling address errors.

To: David Daney <ddaney@caviumnetworks.com>
Subject: Re: [PATCH] MIPS: Use force_sig when handling address errors.
From: Ralf Baechle <ralf@linux-mips.org>
Date: Tue, 5 May 2009 21:32:32 +0100
Cc: linux-mips@linux-mips.org, florian@openwrt.org
In-reply-to: <1241552987-662-1-git-send-email-ddaney@caviumnetworks.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1241552987-662-1-git-send-email-ddaney@caviumnetworks.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.18 (2008-05-17)
On Tue, May 05, 2009 at 12:49:47PM -0700, David Daney wrote:

> When init is started it is SIGNAL_UNKILLABLE.  If it were to get an
> address error, we would try to send it SIGBUS, but it would be ignored
> and the faulting instruction restarted.  This results in an endless
> loop.
> 
> We need to use force_sig() instead so it will actually die and give us
> some useful information.
> 
> Reported-by: Florian Fainelli <florian@openwrt.org>
> 
> Signed-off-by: David Daney <ddaney@caviumnetworks.com>

Thanks!  Will apply.

  Ralf

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