LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-21-2018, 04:46 AM   #1
mr.simo
Member
 
Registered: Feb 2010
Posts: 76

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


Hello,

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:

Code:
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:

Code:
depmod: ERROR: Bad version passed
uname output is:

Code:
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,
s

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

Rep: Reputation: 58
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)
mm/usercopy.c:EXPORT_SYMBOL(__check_object_size);
do you think your version doesn't have those symbols?
 
Old 09-22-2018, 03:46 AM   #3
mr.simo
Member
 
Registered: Feb 2010
Posts: 76

Original Poster
Rep: Reputation: 0
Hey whansard,

Quote:
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.

Regards,
Simon
 
  


Reply


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 08:20 PM
[SOLVED] insmod inserts the module. but lsmod does not list it. using Plx load module utility. cpemmaraju Linux - Kernel 2 05-14-2014 11:58 PM
unknown symbol platform_driver_register while insmod Jae-Yong Yoo Linux - Newbie 0 11-26-2011 08:53 AM
[SOLVED] insmod unifi_sdio.ko ERROR : Unknown Symbol blink182 Linux - Networking 2 03-10-2011 02:24 AM
Kernel module problem - unknown symbol in module mlangdn Slackware 3 08-30-2010 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:16 PM.

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