Skip to contentSkip to conversation

Resend: [PATCH] x86-64: fix unwind annotations in syscall stubs

PATCH Jan Beulich 2 participants 2 messages Sep 2, 2010 x86

lore
Share & tools
lore
#0 lore raw

The scope should really extend to the end of the function, not the return location.

---
 arch/x86/kernel/entry_64.S |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/entry_64.S +1 -1
@@ -1445,7 +1445,6 @@ error_swapgs:
 error_sti:
 	TRACE_IRQS_OFF
 	ret
-	CFI_ENDPROC
 
 /*
  * There are two places in the kernel that can potentially fault with
@@ -1470,6 +1469,7 @@ bstep_iret:
 	/* Fix truncated RIP */
 	movq %rcx,RIP+8(%rsp)
 	jmp error_swapgs
+	CFI_ENDPROC
 END(error_entry)
 
 
#1 lore raw
Quoted 20 lines · Jan Beulich

The scope should really extend to the end of the function, not the return location.

---
 arch/x86/kernel/entry_64.S |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/entry_64.S +0 -1
@@ -1445,7 +1445,6 @@ error_swapgs:
 error_sti:
 	TRACE_IRQS_OFF
 	ret
-       CFI_ENDPROC
 
 /*
  * There are two places in the kernel that can potentially fault with

arch/x86/kernel/entry_64.S bstep_iret: · line 1474

Quoted 6 lines
arch/x86/kernel/entry_64.S +1 -0
@@ -1470,6 +1469,7 @@ bstep_iret:
 	/* Fix truncated RIP */
 	movq %rcx,RIP+8(%rsp)
 	jmp error_swapgs
+       CFI_ENDPROC
 END(error_entry)
 

Indeed.