Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 09-21-2018, 05:46 AM   #1
Registered: Feb 2010
Posts: 78

Rep: Reputation: 0
Module load (insmod): Unknown symbol


I am trying to load a third party proprietary driver (successfully compiled) but when I try to load it with insmod, I get the "Unknown symbol" error:

loading out-of-tree module taints kernel.
Unknown symbol __check_object_size (err 0)
Unknown symbol __stack_chk_guard (err 0)
Unknown symbol kmem_cache_alloc_trace (err 0)
Unknown symbol __stack_chk_fail (err 0)
Unknown symbol _mcount (err 0)
I know this error is related to some missing module, but I don't know how to ensure what module is missing (without looking at modules.symbols into the /lib/module/<kernel-version>/ dir).

Additionally, depmode <driver.ko> returns the error:

depmod: ERROR: Bad version passed
uname output is:

Linux hostname 4.9-camera-lt-qcom #1 SMP PREEMPT Fri Jun 30 16:14:43 UTC 2017 aarch64 GNU/Linux
What exactly is causing this error and what is the best way to solve it ?
Thank you in advance.
Best regards,

Last edited by mr.simo; 09-21-2018 at 06:17 AM.
Old 09-21-2018, 08:15 AM   #2
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,258

Rep: Reputation: 60
when you're messing with an out of tree kernel module, stuff gets messy. you can only try different versions of the kernel. i just grepped the source for the first symbol in kernel 4.15, and got- include/linux/thread_info.h:extern void __check_object_size(const void *ptr, unsigned long n,
include/linux/thread_info.h: __check_object_size(ptr, n, to_user);
mm/usercopy.c:void __check_object_size(const void *ptr, unsigned long n, bool to_user)
do you think your version doesn't have those symbols?
Old 09-22-2018, 04:46 AM   #3
Registered: Feb 2010
Posts: 78

Original Poster
Rep: Reputation: 0
Hey whansard,

I just grepped the source ...
That's what I have done as well but as I understand, these symbols are not related to any driver (I mean that these symbols are not declared in a driver source code from drivers directory).

So from the error I understood that the driver was looking for some other missing part/driver/feature of the kernel, obviously not compiled at that time.
I finally solved (at least it was it seems) using the correct configuration file provided from Linaro (I found it later), without messing with these kind of trouble.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
insmod custom module fails with message : disagrees about version of symbol ... 915086731 Programming 2 10-18-2017 09:20 PM
[SOLVED] insmod inserts the module. but lsmod does not list it. using Plx load module utility. cpemmaraju Linux - Kernel 2 05-15-2014 12:58 AM
unknown symbol platform_driver_register while insmod Jae-Yong Yoo Linux - Newbie 0 11-26-2011 09:53 AM
[SOLVED] insmod unifi_sdio.ko ERROR : Unknown Symbol blink182 Linux - Networking 2 03-10-2011 03:24 AM
Kernel module problem - unknown symbol in module mlangdn Slackware 3 08-31-2010 12:10 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration