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!


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!