LinuxQuestions.org
Help answer threads with 0 replies.
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 05-06-2021, 04:34 PM   #1
maksim1979
LQ Newbie
 
Registered: May 2021
Posts: 2

Rep: Reputation: Disabled
Cannot install modules with 5.12 kernel


Hello!

I've just switched to 5.12 kernel and find out that now I cannot install even the simplest kernel modules with only module_init/module_exit methods. Like here https://linux.die.net/lkmpg/x121.html

So, insmod fails with:
insmod: ERROR: could not insert module ./my-module.ko: Invalid parameters

And dmesg shows:
kernel read not supported for file /my-module.ko (pid: 6289 comm: insmod)

Here is the patch with this message:
https://git.kernel.org/pub/scm/linux...a2f3cdf95aaadf

Frankly, I don't understand what additionally I should specify in my module to make it work.

Any ideas what I do wrong and how to fix this?
Thanks a lot!

Last edited by maksim1979; 05-06-2021 at 04:46 PM.
 
Old 05-07-2021, 10:04 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,591

Rep: Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689
Were these modules compiled against kernel headers for this version?
 
Old 05-07-2021, 01:06 PM   #3
maksim1979
LQ Newbie
 
Registered: May 2021
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
Were these modules compiled against kernel headers for this version?
It was the same virtual machine (virtualbox+vagrant). Actually I've found the problem. Virtualbox filesystem (vboxsf) is not updated for the 5.12 kernel, so the system couldn't load *.ko file content. When I've moved *.ko file to /var/tmp, insmod started to work as expected.
 
Old 05-07-2021, 05:27 PM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,591

Rep: Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689Reputation: 2689
I see.

When you post a problem or question, it is always a good idea to mention if virtualization is involved, what kind, and which level has the problem.

Glad you solved it!
 
1 members found this post helpful.
  


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
[SOLVED] Slackware 14.2 Install mkinitrd ERROR: No /lib/modules/4.4.14-smp kernel modules tree found for kernel " 4.4.14-smp" laxware Slackware 4 01-04-2019 12:40 PM
modules.conf - Cannot get modules to load automatically gundelgauk Linux - General 1 12-27-2003 11:27 PM
Kernel modules: why are some kernel modules zipped? hampel Slackware 3 06-30-2003 06:33 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM

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

All times are GMT -5. The time now is 07:17 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