linux-mips
[Top] [All Lists]

Re: [PATCH] Fix BUG(), BUG_ON() handling

To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Subject: Re: [PATCH] Fix BUG(), BUG_ON() handling
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 18 Apr 2007 15:25:53 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <20070412.200254.128619887.nemoto@toshiba-tops.co.jp>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20070412.200254.128619887.nemoto@toshiba-tops.co.jp>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.2.2i
On Thu, Apr 12, 2007 at 08:02:54PM +0900, Atsushi Nemoto wrote:

> With commit 63dc68a8cf60cb110b147dab1704d990808b39e2, kernel can not
> handle BUG() and BUG_ON() properly since get_user() returns false for
> kernel code.  Use __get_user() to skip unnecessary access_ok().  This
> patch also make BRK_BUG code encoded in the TNE instruction.

Thanks, applied to 2.6.20-stable and master.

  Ralf

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