Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于内核驱动LKM在Kylin-Desktop-V10-SP1-HWE-Release-2303-X86_64 信创系统中崩溃问题 #534

Open
mt21625457 opened this issue Sep 10, 2023 · 2 comments

Comments

@mt21625457
Copy link

1、内核版本信息
内核版本为 5.10.X, 麒麟内部定制开发版本。

2、崩溃描叙:
LKM 只要注册kprobe回调 就会崩溃, 将回调中所有逻辑注释,也会崩溃。
因为麒麟没有提供debug内核 来调试, 初步调试是崩溃在 内核lsm hook链表加载
也可能是真正的崩溃点在其他地方。

3、暂时没有办法, 让LKM内核驱动 在 此定制版本内核中运行。 这个崩溃应该是由定制内核版本造成的。
去掉所有的kprobe hook 就可以正常运行

4、此信息为记录BUG。

@Percivalll
Copy link
Contributor

写个demo随便注册个kprobe也会崩么?如果也崩就能确认是kernel的问题了,感觉像是kprobe实现过程中的问题

@mt21625457
Copy link
Author

写个demo随便注册个kprobe也会崩么?如果也崩就能确认是kernel的问题了,感觉像是kprobe实现过程中的问题

是的,任意kprobe 注册, 即使回调函数中没有任何逻辑,直接return 0 也会崩溃。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants