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.