Re: [RFC PATCH 2/5] module: save load_info for livepatch modules

2015-11-12 Thread Josh Poimboeuf
On Mon, Nov 09, 2015 at 11:45:52PM -0500, Jessica Yu wrote: > In livepatch modules, preserve section, symbol, string information from > the load_info struct in the module loader. This information is used to > patch modules that are not loaded in memory yet; specifically it is used > to resolve rema

Re: [RFC PATCH 2/5] module: save load_info for livepatch modules

2015-11-12 Thread Josh Poimboeuf
On Mon, Nov 09, 2015 at 11:45:52PM -0500, Jessica Yu wrote: > In livepatch modules, preserve section, symbol, string information from > the load_info struct in the module loader. This information is used to > patch modules that are not loaded in memory yet; specifically it is used > to resolve rema

Re: [RFC PATCH 2/5] module: save load_info for livepatch modules

2015-11-11 Thread Petr Mladek
On Mon 2015-11-09 23:45:52, Jessica Yu wrote: > In livepatch modules, preserve section, symbol, string information from > the load_info struct in the module loader. This information is used to > patch modules that are not loaded in memory yet; specifically it is used > to resolve remaining symbols

Re: [RFC PATCH 2/5] module: save load_info for livepatch modules

2015-11-11 Thread Miroslav Benes
On Mon, 9 Nov 2015, Jessica Yu wrote: > diff --git a/include/linux/module.h b/include/linux/module.h > index 3a19c79..c8680b1 100644 > --- a/include/linux/module.h > +++ b/include/linux/module.h [...] > +#ifdef CONFIG_LIVEPATCH > +extern void klp_prepare_patch_module(struct module *mod, > +

Re: [RFC PATCH 2/5] module: save load_info for livepatch modules

2015-11-11 Thread Minfei Huang
On 11/09/15 at 11:45pm, Jessica Yu wrote: > In livepatch modules, preserve section, symbol, string information from > the load_info struct in the module loader. This information is used to > patch modules that are not loaded in memory yet; specifically it is used > to resolve remaining symbols and