LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-27-2022, 01:11 AM   #1
BWO
LQ Newbie
 
Registered: Jun 2022
Posts: 2

Rep: Reputation: 0
Problem loading out-of-tree module


I'm trying to load an out-of-tree module, exactly the same way I was doing it on past kernels with success. But with 5.15.27, it longer works:
Code:
$ insmod /lib/modules/5.15.27custom/extra/mymodule.ko
insmod: ERROR: could not insert module /lib/modules/5.15.27custom/extra/mymodule.ko: Invalid parameters
dmesg says:
Code:
[61204.361171] mymodule: loading out-of-tree module taints kernel.
[61204.361232] mymodule: module verification failed: signature and/or required key missing - tainting kernel
[61204.361302] mymodule: disagrees about version of symbol __stack_chk_fail
[61204.361326] mymodule: Unknown symbol __stack_chk_fail (err -22)
CONFIG_STACKPROTECTOR and CONFIG_STACKPROTECTOR_STRONG are set in .config, if that matters.
Can anyone help me on how to make that module loadable (or rebuild so it can be loaded)?

Thanks in advance!
 
Old 06-27-2022, 01:24 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,899

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
That is extremely hard from here. We know nothing about that "mymodule.ko". Most probably it is not compatible with that kernel. It was not built for it or build failed or who knows?
Would be nice to tell us exactly what is it, how it was built? Also you may need to check the kernel changelog (if it worked with a previous kernel).
 
  


Reply



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
Problem loading out-of-tree module BWO Linux - Kernel 1 06-28-2022 05:56 AM
Finding Module Dependencies...(Still loading...still loading..still loading..HANG!!!) Aeudian Linux - General 3 08-11-2003 03:31 PM
Finding Module Dependencies.....(still loading....Still loading....still loading) Aeudian Linux - Newbie 1 07-28-2003 02:27 PM
need a P-Tree (Patricia Tree) library manaskb Programming 1 11-02-2002 06:15 PM

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

All times are GMT -5. The time now is 01:39 AM.

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
Open Source Consulting | Domain Registration