[PATCH] x86-64: move save_paranoid into .kprobes.text

From: Jan Beulich
Date: Thu Mar 12 2009 - 06:38:34 EST


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@xxxxxxxxxx>

---
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.



--
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/