Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1497889
| From | Mathieu OTHACEHE <m.othacehe@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [lkp] [x86] 784d5699ed: kmsg.ip_tables:no_symbol_version_for_copy_from_user |
| Date | 2016-10-09 11:50 +0200 |
| Message-ID | <sqiU2-2sU-7@gated-at.bofh.it> (permalink) |
| References | <sjjrP-5Ci-15@gated-at.bofh.it> <smSW5-2lb-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi, > Do we have any resolution of this? I got the exact same problem if CONFIG_MODVERSIONS is enabled. Here is my understanding. All the symbols exported using assembler macro EXPORT_SYMBOL will need a __crc_<symbol> to be defined later on (include/asm-generic/export.h). This is what genksyms should do but it only runs on *.c files. So all the symbols exported from *.S files won't get crc. modpost is complaining about missing crc and it will not include those symbols in *.mod.c modversion_info struct. Then, we got "Unknown symbol" errors when modules are inserted at runtime. I fixed it locally by setting __crc_<symbol> to a constant value in export.h. But it may be a better idea to have genksyms run on *.S files ? Thanks, Mathieu
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [lkp] [x86] 784d5699ed: kmsg.ip_tables:no_symbol_version_for_copy_from_user Stephen Rothwell <sfr@canb.auug.org.au> - 2016-09-30 01:30 +0200
Re: [lkp] [x86] 784d5699ed: kmsg.ip_tables:no_symbol_version_for_copy_from_user Mathieu OTHACEHE <m.othacehe@gmail.com> - 2016-10-09 11:50 +0200
Re: [lkp] [x86] 784d5699ed: kmsg.ip_tables:no_symbol_version_for_copy_from_user Michal Marek <mmarek@suse.cz> - 2016-10-11 15:20 +0200
Re: [lkp] [x86] 784d5699ed: kmsg.ip_tables:no_symbol_version_for_copy_from_user Michal Marek <mmarek@suse.com> - 2016-10-11 15:20 +0200
csiph-web