public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Arjan van de Ven <arjan@infradead.org>
Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
	torvalds@linux-foundation.org
Subject: Re: Fix x86 32 bit FRAME_POINTER chasing code
Date: Thu, 10 Jan 2008 07:54:38 +0100	[thread overview]
Message-ID: <20080110065438.GA23022@elte.hu> (raw)
In-Reply-To: <20080109220421.630d3516@laptopd505.fenrus.org>


* Arjan van de Ven <arjan@infradead.org> wrote:

> +++ linux-2.6.24-rc7/arch/x86/kernel/traps_32.c
> @@ -124,7 +124,8 @@ static inline unsigned long print_contex
>  		unsigned long addr;
>  
>  		addr = frame->return_address;
> -		ops->address(data, addr);
> +		if (__kernel_text_address(addr))
> +			ops->address(data, addr);
>  		/*
>  		 * break out of recursive entries (such as
>  		 * end_of_stack_stop_unwind_function). Also,
> @@ -132,6 +133,7 @@ static inline unsigned long print_contex
>  		 * move downwards!
>  		 */
>  		next = frame->next_frame;
> +		ebp = (unsigned long) next;
>  		if (next <= frame)

thanks, applied. Nice catch!

> This patch is simple; I don't know if it's .24 candidate; the bug is 
> pretty bad but not a recent regression, and there is obviously some 
> risk with touching this code.

it's a 2.6.24.1 candidate i believe. We trigger plenty of various 
crashes during x86.git maintenance and others hit various crashes in 
-mm, so by the time .1 is released we'll have it in .25 and can backport 
it. Most folks/distros will update to 2.6.24.1 very quickly so there's 
no risk of months loss of quality to kerneloops.org data either.

if there's more than 1-2 weeks to the v2.6.24 release we could merge it 
right now as well:

 Acked-by: Ingo Molnar <mingo@elte.hu>

because in a week we'll trigger plenty of crashes in -git based x86 
trees and will know about any regressions and will be able to reasonably 
trust it.

	Ingo

  reply	other threads:[~2008-01-10  6:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-10  6:04 Fix x86 32 bit FRAME_POINTER chasing code Arjan van de Ven
2008-01-10  6:54 ` Ingo Molnar [this message]
2008-01-10 11:01   ` Adrian Bunk
2008-01-10 19:23   ` Chuck Ebbert
2008-01-14 10:33     ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080110065438.GA23022@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@linux-foundation.org \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox