Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1330060
| From | Jiri Kosina <jikos@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH v4 2/6] module: preserve Elf information for livepatch modules |
| Date | 2016-02-09 11:40 +0100 |
| Message-ID | <r0dSa-2Mi-19@gated-at.bofh.it> (permalink) |
| References | <qYgKt-1Kh-7@gated-at.bofh.it> <qYgKt-1Kh-5@gated-at.bofh.it> <r0c9H-1Bp-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 9 Feb 2016, Petr Mladek wrote: > > +#ifdef CONFIG_KALLSYMS > > + /* Make symtab and strtab available prior to module init call */ > > + mod->num_symtab = mod->core_num_syms; > > + mod->symtab = mod->core_symtab; > > + mod->strtab = mod->core_strtab; > > +#endif > > This should be done with module_mutex. Otherwise, it looks racy at least > against module_kallsyms_on_each_symbol(). Hmm, if this is the case, the comment describing the locking rules for module_mutex should be updated. > BTW: I wonder why even the original code is not racy for example against > module_get_kallsym. It is called without the mutex. This code sets the > number of entries before the pointer to the entries. > > Note that the module is in the list even in the UNFORMED state. module_kallsyms_on_each_symbol() gives up in such case though. -- Jiri Kosina SUSE Labs
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH v4 2/6] module: preserve Elf information for livepatch modules Jessica Yu <jeyu@redhat.com> - 2016-02-04 02:20 +0100
Re: [RFC PATCH v4 2/6] module: preserve Elf information for livepatch modules Josh Poimboeuf <jpoimboe@redhat.com> - 2016-02-08 21:20 +0100
Re: module: preserve Elf information for livepatch modules Jessica Yu <jeyu@redhat.com> - 2016-02-08 21:40 +0100
Re: [RFC PATCH v4 2/6] module: preserve Elf information for livepatch modules Petr Mladek <pmladek@suse.com> - 2016-02-09 09:50 +0100
Re: [RFC PATCH v4 2/6] module: preserve Elf information for livepatch modules Jiri Kosina <jikos@kernel.org> - 2016-02-09 11:40 +0100
Re: [RFC PATCH v4 2/6] module: preserve Elf information for livepatch modules Petr Mladek <pmladek@suse.com> - 2016-02-09 13:40 +0100
Re: [RFC PATCH v4 2/6] module: preserve Elf information for livepatch modules Rusty Russell <rusty@rustcorp.com.au> - 2016-02-10 01:30 +0100
Re: [RFC PATCH v4 2/6] module: preserve Elf information for livepatch modules Petr Mladek <pmladek@suse.com> - 2016-02-10 17:00 +0100
csiph-web