Handling of vermagic errors when insmod drives.
uname -a to see the vermagic on the environment
If the driver code is consistent, you can force to modify the UTS_RELEASE macro in include/generated/utsrelease.h to be consistent with the environment, and then compile the KO.
Signature error: signature and/or required key missing – tainting kernel
Reason: The kernel is enabled for signing, the driver is not signed.
Signature-related options in the kernel.
CONFIG_MODULE_SIG_FORMAT=y
CONFIG_MODULE_SIG=y
#CONFIG_MODULE_SIG_FORCE is not set
CONFIG_MODULE_SIG_ALL=y
#CONFIG_MODULE_SIG_SHA1 is not set
#CONFIG_MODULE_SIG_SHA224 is not set
#CONFIG_MODULE_SIG_SHA256 is not set
#CONFIG_MODULE_SIG_SHA384 is not set
CONFIG_MODULE_SIG_SHA512=y
CONFIG_MODULE_SIG_HASH=“sha512”
CONFIG_MODULE_SIG_KEY=“certs/signing_key.pem”
Signature method:
./scripts/sign-file sha512 ./certs/signing_key.pem ./certs/signing_key.x509 drivers/xxx.ko
Read More:
- insmod Error: Invalid module format [How to Solve]
- [Solved] DPDK Error: insmod: ERROR: could not insert module igb_uio.ko: Invalid parameters
- [Solved] Wechat IOS signature error config:fail
- [Solved] Git error: bad signature 0x00000000 fatal: index file corrupt
- jenkins pipeline Shared Library Error: No signature of method
- [Solved] Git Error: client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0
- Xcode debugging for the real iPhone Error: code signature version is no longer supported
- Error in node when PM2 starts multiple processes in docker
- Template cannot be rendered due to the joint query of populate in mongoose: syntax error: unexpected token r in JSON at position 0
- [Solved] Android Error: AAPT: error: unescaped apostrophe in string;Multiple substitutions specified in non-positi
- [Solved] RuntimeError: Error(s) in loading state_dict for FasterRCNN: Missing key(s) in state_dict:……
- [Solved] RuntimeError: Error(s) in loading state_dict for Model: Missing key(s) in state_dict
- Cssssyntax error in webpack [How to Solve]
- [Solved] Vsync Error: this error in animationcontroller in fluent
- How to Fix Node SASS Error in Vue + webpack project after nodejs upgrade
- [Solved] error: ‘IEEE80211_BAND_2GHZ’ undeclared here (not in a function)
- [Solved] Mavenwas cached in the local repository
- C Language error: two or more data types in declaration specifiers
- Notes on atom editor_ (11) Editor previews HTML page in real time (add in: atom HTML preview)
- Error in loading latex project compilation [How to Solve]