Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insmod: ERROR ... Unknown symbol in module #87

Closed
lulinqing opened this issue Mar 27, 2014 · 5 comments
Closed

insmod: ERROR ... Unknown symbol in module #87

lulinqing opened this issue Mar 27, 2014 · 5 comments

Comments

@lulinqing
Copy link
Contributor

Tested and hit the same issue on two fc20 machines:

$ uname -r
3.13.6-200.fc20.x86_64

$ sudo insmod kpatch-foo.ko 
insmod: ERROR: could not insert module kpatch-foo.ko: Unknown symbol in module
$ dmesg | tail
...
[59874.745996] kpatch_foo: module verification failed: signature and/or  required key missing - tainting kernel
[59874.746086] kpatch_foo: Unknown symbol kpatch_register (err 0)
[59874.746119] kpatch_foo: Unknown symbol kpatch_unregister (err 0)

$ sudo insmod kpatch-foo.ko 
insmod: ERROR: could not insert module kpatch-foo.ko: Unknown symbol in module
$ dmesg | tail
...
[59874.745996] kpatch_foo: module verification failed: signature and/or  required key missing - tainting kernel
[59874.746086] kpatch_foo: Unknown symbol kpatch_register (err 0)
[59874.746119] kpatch_foo: Unknown symbol kpatch_unregister (err 0)
[59924.752963] kpatch_foo: Unknown symbol kpatch_register (err 0)
[59924.752982] kpatch_foo: Unknown symbol kpatch_unregister (err 0)
@jpoimboe
Copy link
Member

Hi @lulinqing , did you load kpatch.ko first?

@lulinqing
Copy link
Contributor Author

hi @jpoimboe , thanks for reminding... Seems I failed to load kpatch.ko because of some reason during the upgrade from fc19~fc20 ( issue #86 ) and I didn't notice that.

$ ls /usr/local/lib/modules/$(uname -r)/kpatch/kpatch.ko
/usr/local/lib/modules/3.13.6-200.fc20.x86_64/kpatch/kpatch.ko
$ sudo insmod /usr/local/lib/modules/$(uname -r)/kpatch/kpatch.ko
insmod: ERROR: could not insert module /usr/local/lib/modules/3.13.6-200.fc20.x86_64/kpatch/kpatch.ko: Invalid module format
$ dmesg | tail
...
[60868.408750] kpatch: version magic '3.13.6-100.fc19.x86_64 SMP mod_unload ' should be '3.13.6-200.fc20.x86_64 SMP mod_unload '

I do re-compiled the kpatch core module and re-installed via make && sudo make install. But apparently it's not a clean one.

@jpoimboe
Copy link
Member

Yeah, if you don't always do a make clean after a kernel update then the core module can get out of date.

I just fixed it with #88. It should be fixed now if you do a make && sudo make install with the latest master.

@lulinqing
Copy link
Contributor Author

Thanks @jpoimboe , that sounds great.

Everything went well now after with a correct kpatch.ko loaded.

@jpoimboe
Copy link
Member

Ok good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants