Thread (44 messages) 44 messages, 8 authors, 2016-02-24

Re: [PATCH v8 8/8] livepatch: Detect offset for the ftrace location during build

From: Kamalesh Babulal <hidden>
Date: 2016-02-16 10:31:50
Also in: lkml

* Torsten Duwe [off-list ref] [2016-02-16 09:23:02]:
On Tue, Feb 16, 2016 at 11:17:02AM +0530, Kamalesh Babulal wrote:
quoted
* Petr Mladek [off-list ref] [2016-02-12 17:45:17]:
quoted
 int test(int a)
 {
+	printk("%d\n", a);
 	return ++a;
 }
Thanks. This workaround, helped to load sample livepatch module.
N.b.: if you try to livepatch/trace such a leaf function without
global dependencies, it will crash if that function got called with
a different TOC value. Hence this whole testing.
I am running out of ideas on how to generate this crash, any pointers
will be helpful.
You may alternatively try my gcc patch ;-)
Thank you. I will give the patch a try.

Regards,
Kamalesh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help