统信Unknown symbol uld_fcheck_file (err -2)

博客探讨了在统信操作系统中遇到的加载内核模块(KO)错误,指出该错误是由于内核版本与模块不匹配导致的。文章详细介绍了错误现象,fcheck_files函数的作用,并提供了解决问题的方法,包括查找匹配的内核版本,执行yum更新,安装相应内核包和内核开发包,最后重新编译KO模块。

1. 加载ko报错

Apr  7 19:42:45 localhost kernel: knl: loading out-of-tree module taints kernel.
Apr  7 19:42:45 localhost kernel: knl: module verification failed: signature and/or required key missing - tainting kernel
Apr  7 19:42:45 localhost kernel: knl: Unknown symbol uld_fcheck_file (err -2)

  knl: module verification failed: signature and/or required key missing - tainting kernel 是指被加载的knl.ko没有签名,内核被污染,但继续执行

2. fcheck_files函数

 fcheck实际上是fcheck_files函数,作用是检查指定fd是否有打开的文件。(检查一个fd是否被占用)

/*
 * Check whether the specified fd has an open file.
 */
#define fcheck(fd)	fcheck_files(current->files, fd)

为了查找给定fd的文件结构,一个读取器必须使用fcheck()或fcheck_files() api

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

byte_knight

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值