kdb
[Top] [All Lists]

Re: [kdb] [mort@xxxxxxx: [PATCH] x86: push old stack address on irqstack

To: kdb@xxxxxxx
Subject: Re: [kdb] [mort@xxxxxxx: [PATCH] x86: push old stack address on irqstack for unwinder]
From: Martin Hicks <mort@xxxxxxx>
Date: Tue, 3 Feb 2009 10:07:37 -0600
In-reply-to: <20090130182440.GF7872@xxxxxxxxxxxxxxxxxxxxxxxxx>
References: <20090130182440.GF7872@xxxxxxxxxxxxxxxxxxxxxxxxx>
User-agent: Mutt/1.5.17 (2007-11-01)
On Fri, Jan 30, 2009 at 12:24:40PM -0600, Martin Hicks wrote:
> 
> Oops, I meant to CC the KDB list also, but forgot.
> 
> With the reorganization of SAVE_ARGS into a function they removed this
> push onto the interrupt stack.
> 

Peter Anvin accepted this patch, so hopefully it will show up in
2.6.29-rc4


mh

> 
> ----- Forwarded message from Martin Hicks <mort@xxxxxxx> -----
> 
> From: Martin Hicks <mort@xxxxxxx>
> Subject: [PATCH] x86: push old stack address on irqstack for unwinder
> Date: Fri, 30 Jan 2009 10:50:54 -0600
> To: tglx@xxxxxxxxxxxxx, mingo@xxxxxxxxxx, hpa@xxxxxxxxx,
>       heukelum@xxxxxxxxxxxxx
> Cc: linux-kernel <linux-kernel@xxxxxxxxxxxxxxx>
> 
> 
> Hi,
> 
> KDB was using this information.  Could this be pushed towards 2.6.29 please?
> 
> This re-adds the old stack pointer to the top of the irqstack to help
> with unwinding.  It was removed in commit 
> d99015b1abbad743aa049b439c1e1dede6d0fa49
> as part of the save_args out-of-line work.
> 
> Signed-off-by: Martin Hicks <mort@xxxxxxx>
> ---
>  arch/x86/kernel/entry_64.S |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
> index e28c7a9..a134621 100644
> --- a/arch/x86/kernel/entry_64.S
> +++ b/arch/x86/kernel/entry_64.S
> @@ -346,6 +346,7 @@ ENTRY(save_args)
>       popq_cfi %rax                   /* move return address... */
>       mov %gs:pda_irqstackptr,%rsp
>       EMPTY_FRAME 0
> +     pushq_cfi %rbp                  /* backlink for unwinder */
>       pushq_cfi %rax                  /* ... to the new stack */
>       /*
>        * We entered an interrupt context - irqs are off:
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
> ----- End forwarded message -----
> 
> _______________________________________________
> kdb mailing list
> kdb@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/kdb

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [kdb] [mort@xxxxxxx: [PATCH] x86: push old stack address on irqstack for unwinder], Martin Hicks <=