LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   insmod: error inserting '../../../kernel/crypto/twofish_common.ko': -1 Invalid module format (https://www.linuxquestions.org/questions/linux-general-1/insmod-error-inserting-kernel-crypto-twofish_common-ko-1-invalid-module-format-4175599454/)

kalai_karthick 02-10-2017 10:54 AM

insmod: error inserting '../../../kernel/crypto/twofish_common.ko': -1 Invalid module format
 
I am getting errors related to insmod of few modules during the boot-up of my system. It was working fine in my previous image. The only difference between my current image and the previous one is the change in kernel config file. I enabled the CONFIG_DEBUG_RCU_HEAD.

dmesg shows the following
twofish_common: disagrees about version of symbol module_layout


Note: insmod is successful after the system completes the boot-up

Xeratul 02-10-2017 11:39 AM

Quote:

Originally Posted by kalai_karthick (Post 5668397)
I am getting errors related to insmod of few modules during the boot-up of my system. It was working fine in my previous image. The only difference between my current image and the previous one is the change in kernel config file. I enabled the CONFIG_DEBUG_RCU_HEAD.

dmesg shows the following
twofish_common: disagrees about version of symbol module_layout


Note: insmod is successful after the system completes the boot-up

likely your gcc compiling wasn't successfull. I would recheck the compiling, maybe there was some errors.

check maybe also lsinitramfs which looks into initrd.img

sundialsvcs 02-10-2017 12:12 PM

As I commented in another thread, I always reset everything before compiling so that I know that I have, in fact, recompiled everything. It sounds to me like one or more of the modules were not recompiled. The Linux module-insertion logic contains aggressive module-compatibility tests, for obvious reasons.


All times are GMT -5. The time now is 09:44 AM.