Re: module: preserve Elf information for livepatch modules

From
Rusty Russell <hidden>
Date
2016-01-14 20:28:43
Also in
lkml
Reply to
Jessica Yu, 2016-01-14
Jessica Yu [off-list ref] writes:
quoted hunk ↗ jump to hunk
+++ Rusty Russell [11/01/16 11:55 +1030]:
quoted
This comment is a bit misleading: it's actually pointing into the
temporary module copy, which will be discarded.  The init section is
slightly different...
Ah, perhaps I'm misunderstanding something..

Since copy_module_elf() is called after move_module(), my
understanding is that all the section sh_addr's should be pointing
to either module core memory or module init memory (instead of the
initial temporary copy of the module in info->hdr).
You're absolutely correct; I'd forgotten that particular kallsyms twist.

Sorry for the noise!
Rusty.
Thread (27 messages) 27 messages, 6 authors, last reply 2016-01-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help