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