gpt4 book ai didi

c - kvm:模块验证失败:缺少签名和/或所需的 key - 污染内核

转载 作者:IT王子 更新时间:2023-10-29 00:15:03 25 4
gpt4 key购买 nike

我正在使用 Ubuntu 14.04 LTS 和内核版本 3.13.11.4
我正在尝试加载打过补丁的 KVM 模块 kvmkvm-intel,但出现以下错误

kvm: module verification failed: signature and/or required key missing - tainting kernel
and kvm: module has bad taint, not creating trace events.

使用的源与创建我当前正在运行的图像的源相同。
我检查了符号并确保错误不是由未在我导出函数的修补文件中包含 EXPORT_SYMBOL_GPL() 引起的。

I've also seen some stuff about different kernel versions causing this error but I built the kernel that I'm booted in with the same source that I used to create the patched kvm modules.
Everything compile without an warning. Any help is appreciated!

最佳答案

无需重新配置内核,只需在 顶部添加一行 CONFIG_MODULE_SIG=n 即可解决此错误(module verification failed) >模块本身的 Makefile:

CONFIG_MODULE_SIG=n

# If KERNELRELEASE is defined, we've been invoked from the
# kernel build system and can use its language.
ifneq ($(KERNELRELEASE),)
obj-m := hello.o

# Otherwise we were called directly from the command
# line; invoke the kernel build system.
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
endif

关于c - kvm:模块验证失败:缺少签名和/或所需的 key - 污染内核,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24975377/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com