5 Star 1 Fork 9

src-openEuler / dwarves

 / 详情

[master]每日构建安装后,dmesg日志报错missing module BTF, cannot register kfuncs

已验收
缺陷
创建于  
2023-07-12 17:33

【环境信息】
软件信息:
1) OS版本及分支:openEuler-Mainline
2) 内核信息:6.1.8-3.0.0.8.oe1
如果有特殊组网,请提供网络拓扑图
【问题复现步骤】
具体操作步骤
dmesg
systemctl status firewalld
出现概率(必现)
【预期结果】
安装成功,无报错信息
【实际结果】
安装有报错信息
【附件信息】
输入图片说明
输入图片说明

附件
dmesg_log(44.04 KB)下载
ga_beng_cui 2023-07-12 17:39
firewalld_log(175.41 KB)下载
ga_beng_cui 2023-07-12 17:39
ga_beng_cui 2023-07-12 17:39
messages(196.62 KB)下载
ga_beng_cui 2023-07-12 17:39

评论 (10)

ga_beng_cui 创建了缺陷

Hi ga_beng_cui, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: sig-high-performance-network, and any of the maintainers: @sky , @李扬扬 , @LemmyHuang , @L.X. , @吴昌盛 , @lilijun

openeuler-ci-bot 添加了
 
sig/sig-high-perform
标签
ga_beng_cui 上传了附件dmesg_log
ga_beng_cui 上传了附件firewalld_log
ga_beng_cui 上传了附件journalctl_log
ga_beng_cui 上传了附件messages

此问题影响:docker-engine和isulad安装有报错信息,docker服务启动失败,docker镜像无法启动,isulad服务启动失败,firewalld服务启动失败,openvswitch服务启动失败等

ga_beng_cui 添加了
 
block
标签

根据2303的经验,当初作为workaround,回退版本保证节点通过,内核和QA会继续调研这个问题,
内核和QA后续是否没有继续关注这个问题?
是否仍然需要回退才能解决问题?
逻辑上我们不应该继续回退,而是找到rootcause。

objdump环境里的ko,发现确实缺少BTF段,注释掉https://gitee.com/src-openeuler/kernel/blob/openEuler-23.09/kernel.spec#L468 ,本地rpmbuild构建验证发现BTF段正常生成没有被处理,怀疑是被构建框架删除

[root@localhost aarch64]# objdump -x 123/lib/modules/6.4.0-1.0.1.4.aarch64/kernel/kernel/trace/ring_buffer_benchmark.ko | grep BTF
[root@localhost aarch64]# objdump -x 456/lib/modules/6.4.0-1.0.1.4.aarch64/kernel/kernel/trace/ring_buffer_benchmark.ko | grep BTF
 33 .BTF          000001e7  0000000000000000  0000000000000000  0002d160  2**0

之前回退dwarves包可以规避问题怀疑是因为pahole生成BTF段的机制存在变更,和构建框架strip机制存在不匹配

确认BTF段是被rpmbuild框架调用的/usr/bin/find-debuginfo脚本中:

+ eu-strip --remove-comment -f /root/rpmbuild/BUILDROOT/kernel-6.4.0-1.0.1.4.aarch64/usr/lib/debug/lib/modules/6.4.0-1.0.1.4.aarch64/kernel/kernel/trace/ring_buffer_benchmark.ko-6.4.0-1.0.1.4.aarch64.debug /root/rpmbuild/BUILDROOT/kernel-6.4.0-1.0.1.4.aarch64/lib/modules/6.4.0-1.0.1.4.aarch64/kernel/kernel/trace/ring_buffer_benchmark.ko

去除的

BTF模块分拆在linux主线5.11版本引入:
5f9ae91f7c0d kbuild: Build kernel module BTFs if BTF is enabled and pahole supports it
依赖pahole版本>=1.19

使用最新版本已验证,无此问题
输入图片说明

ga_beng_cui 任务状态已完成 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
5329419 openeuler ci bot 1632792936 7361816 ga beng cui 1655284969 9922511 chenxi mao 1711352102 5625574 stkid 1587900794
1
https://gitee.com/src-openeuler/dwarves.git
git@gitee.com:src-openeuler/dwarves.git
src-openeuler
dwarves
dwarves

搜索帮助