All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86-64: move save_paranoid into .kprobes.text
@ 2009-03-12 10:38 Jan Beulich
  2009-03-12 11:57 ` [tip:x86/asm] " Jan Beulich
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2009-03-12 10:38 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: linux-kernel

This appears to be necessary as the function gets called from kprobes-
unsafe exception handling stubs (i.e. which themselves live in
.kprobes.text).

Signed-off-by: Jan Beulich <jbeulich@novell.com>

---
 arch/x86/kernel/entry_64.S |    2 ++
 1 file changed, 2 insertions(+)

--- linux-2.6.29-rc7/arch/x86/kernel/entry_64.S	2009-03-11 17:52:10.000000000 +0100
+++ 2.6.29-rc7-x86_64-save_paranoid-kprobes/arch/x86/kernel/entry_64.S	2009-03-10 17:18:55.000000000 +0100
@@ -372,6 +372,7 @@ ENTRY(save_rest)
 END(save_rest)
 
 /* save complete stack frame */
+	.pushsection .kprobes.text, "ax"
 ENTRY(save_paranoid)
 	XCPT_FRAME 1 RDI+8
 	cld
@@ -400,6 +401,7 @@ ENTRY(save_paranoid)
 1:	ret
 	CFI_ENDPROC
 END(save_paranoid)
+	.popsection
 
 /*
  * A newly forked process directly context switches into this address.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-12 11:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-12 10:38 [PATCH] x86-64: move save_paranoid into .kprobes.text Jan Beulich
2009-03-12 11:57 ` [tip:x86/asm] " Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.