Re: live-patching __init functions in modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 30 Oct 2015, Josh Poimboeuf wrote:

> > But otherwise you are actually able to patch __init function of the module 
> > (and we are doing exactly that) exactly the same way you are patching any 
> > other module functions, because we are actually hooked to MODULE_COMING 
> > notifier, which triggers before the module actually goes live (i.e. before 
> > __init gets executed).
> 
> This actually isn't possible, because __init functions don't have the
> __fentry call.

Ah, right you are, thanks.

This has been added in fed1939c ("ftrace: remove old pointers to mcount"), 
and the justification is actually right not only for tracing, but for live 
patching as well; the pointers haven't been filed into ftrace_pages yet, 
so there is no way for us to redirect the code flow.

-- 
Jiri Kosina
SUSE Labs

--
To unsubscribe from this list: send the line "unsubscribe live-patching" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux