Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759623AbZAPD2Y (ORCPT ); Thu, 15 Jan 2009 22:28:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753892AbZAPD2B (ORCPT ); Thu, 15 Jan 2009 22:28:01 -0500 Received: from ti-out-0910.google.com ([209.85.142.191]:25913 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754862AbZAPD17 (ORCPT ); Thu, 15 Jan 2009 22:27:59 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=R4DD4KohIwEBTTO2zsrECPIfxS80Z6SYD7sUy7AAokXW66sEPtaT2EUWlCkB4K2Lgr 4CZD8MwDzaczFCnwbEdzdhiUPCYNzBmXVIhhAhHPTD0c9DcYnqP8nMU1mXVcy7rJeDVj PaYg8+lcGJrDalfMMp6bllTE+pnm4q+a/7aF8= Message-ID: Date: Fri, 16 Jan 2009 11:27:57 +0800 From: "Jike Song" To: "Greg KH" Subject: Re: [patch 81/85] x86: fix RIP printout in early_idt_handler Cc: linux-kernel@vger.kernel.org, stable@kernel.org, "Justin Forbes" , "Zwane Mwaikambo" , "Theodore Ts'o" , "Randy Dunlap" , "Dave Jones" , "Chuck Wolber" , "Chris Wedgwood" , "Michael Krufky" , "Chuck Ebbert" , "Domenico Andreoli" , "Willy Tarreau" , "Rodrigo Rubira Branco" , "Jake Edge" , "Eugene Teo" , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, "Jiri Slaby" , "Ingo Molnar" In-Reply-To: <20090115220204.GD17227@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20090115215237.906089480@mini.kroah.org> <20090115215812.GA17227@kroah.com> <20090115220204.GD17227@kroah.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1400 Lines: 48 On Fri, Jan 16, 2009 at 6:02 AM, Greg KH wrote: > 2.6.27-stable review patch. If anyone has any objections, please let us know. > > ------------------ > > From: Jiri Slaby > > commit 7aed55d1085f71241284a30af0300feea48c36db upstream. > > Impact: fix debug/crash printout > > Since errorcode is popped out, RIP is on the top of the stack. > Use real RIP value instead of wrong CS. > > Signed-off-by: Jiri Slaby > Signed-off-by: Ingo Molnar > Signed-off-by: Greg Kroah-Hartman > > --- > arch/x86/kernel/head_64.S | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/arch/x86/kernel/head_64.S > +++ b/arch/x86/kernel/head_64.S > @@ -305,7 +305,7 @@ ENTRY(early_idt_handler) > call dump_stack > #ifdef CONFIG_KALLSYMS > leaq early_idt_ripmsg(%rip),%rdi > - movq 8(%rsp),%rsi # get rip again > + movq 0(%rsp),%rsi # get rip again > call __print_symbol > #endif > #endif /* EARLY_PRINTK */ why not: movq (%rsp), %rsi instead? Yes, it's all the same but 0 is just unnecessary. -- Thanks, Jike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/