Re: [RFC PATCH v2 2/6] module: preserve Elf information for livepatch modules

2015-12-17 Thread Petr Mladek
On Tue 2015-12-08 12:32:12, Josh Poimboeuf wrote: > On Mon, Nov 30, 2015 at 11:21:15PM -0500, Jessica Yu wrote: > > For livepatch modules, copy Elf section, symbol, and string information > > from the load_info struct in the module loader. > > > > Livepatch uses special relocation sections in orde

Re: [RFC PATCH v2 2/6] module: preserve Elf information for livepatch modules

2015-12-17 Thread Petr Mladek
On Mon 2015-11-30 23:21:15, Jessica Yu wrote: > For livepatch modules, copy Elf section, symbol, and string information > from the load_info struct in the module loader. > > Livepatch uses special relocation sections in order to be able to patch > modules that are not yet loaded, as well as apply

Re: [RFC PATCH v2 2/6] module: preserve Elf information for livepatch modules

2015-12-16 Thread Miroslav Benes
On Mon, 30 Nov 2015, Jessica Yu wrote: > @@ -3530,6 +3614,16 @@ static int load_module(struct load_info *info, const > char __user *uargs, > if (err < 0) > goto bug_cleanup; > > + /* > + * Save sechdrs, indices, and other data from info > + * in order to patch

Re: [RFC PATCH v2 2/6] module: preserve Elf information for livepatch modules

2015-12-08 Thread Josh Poimboeuf
On Mon, Nov 30, 2015 at 11:21:15PM -0500, Jessica Yu wrote: > For livepatch modules, copy Elf section, symbol, and string information > from the load_info struct in the module loader. > > Livepatch uses special relocation sections in order to be able to patch > modules that are not yet loaded, as