- x86_64-unwinder-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     x86_64: unwinder fix

has been removed from the -mm tree.  Its filename is

     x86_64-unwinder-fix.patch

This patch was dropped because it is obsolete

------------------------------------------------------
Subject: x86_64: unwinder fix
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>

Put back the backlink stack pointer for show_trace() to properly switch
from the interrupt stack, and adjust call_softirq to have proper unwind
information.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
Cc: Andi Kleen <ak@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/x86_64/kernel/entry.S |   17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff -puN arch/x86_64/kernel/entry.S~x86_64-unwinder-fix arch/x86_64/kernel/entry.S
--- a/arch/x86_64/kernel/entry.S~x86_64-unwinder-fix
+++ a/arch/x86_64/kernel/entry.S
@@ -521,6 +521,7 @@ END(stub_rt_sigreturn)
 	swapgs	
 1:	incl	%gs:pda_irqcount	# RED-PEN should check preempt count
 	cmoveq %gs:pda_irqstackptr,%rsp
+	pushq %rdi			# for show_trace()
 	/*
 	 * We entered an interrupt context - irqs are off:
 	 */
@@ -1147,16 +1148,18 @@ END(machine_check)
 
 ENTRY(call_softirq)
 	CFI_STARTPROC
-	movq %gs:pda_irqstackptr,%rax
-	movq %rsp,%rdx
-	CFI_DEF_CFA_REGISTER	rdx
+	pushq %rbp
+	CFI_ADJUST_CFA_OFFSET	8
+	CFI_REL_OFFSET		rbp, 0
+	movq %rsp,%rbp
+	CFI_DEF_CFA_REGISTER	rbp
 	incl %gs:pda_irqcount
-	cmove %rax,%rsp
-	pushq %rdx
-	/*todo CFI_DEF_CFA_EXPRESSION ...*/
+	cmoveq %gs:pda_irqstackptr,%rsp
+	pushq %rbp			# for show_trace()
 	call __do_softirq
-	popq %rsp
+	leaveq
 	CFI_DEF_CFA_REGISTER	rsp
+	CFI_ADJUST_CFA_OFFSET	-8
 	decl %gs:pda_irqcount
 	ret
 	CFI_ENDPROC
_

Patches currently in -mm which might be from jbeulich@xxxxxxxxxx are

origin.patch
x86_64-unwinder-fix.patch
i386-initialize-end-of-memory-variables-as-early-as.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux