Article 5HHPQ Cannot install modules with 5.12 kernel

Cannot install modules with 5.12 kernel

by
maksim1979
from LinuxQuestions.org on (#5HHPQ)
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!latest?d=yIl2AUoC8zA latest?i=rA-QTsDsU_I:ezXxJKfjPSc:F7zBnMy latest?i=rA-QTsDsU_I:ezXxJKfjPSc:V_sGLiP latest?d=qj6IDK7rITs latest?i=rA-QTsDsU_I:ezXxJKfjPSc:gIN9vFwrA-QTsDsU_I
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments