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

BUG:Kernel Crashes When Rmmoded Due To const struct of *_operations #2

Open
DavidingPlus opened this issue Mar 13, 2025 · 5 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@DavidingPlus
Copy link
Owner

DavidingPlus commented Mar 13, 2025

将需要注册给内核的各种 operations 的结构体示例前加上 const 限定符以后,内核模块卸载的时候内核会崩溃。

我的本意是不想让可能的因素修改掉这些 operations,这些东西从语义上来讲应该是不变的,至少对我们而言。不知道内核是否在内部做了修改导致崩溃。

崩溃日志如下:

Image

@DavidingPlus DavidingPlus added the bug Something isn't working label Mar 13, 2025
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


After adding const qualifiers to the structure examples of various operations that need to be registered with the kernel, the kernel will crash when the kernel module is uninstalled.

My original intention is not to let possible factors modify these operations. These things should be semantically unchanged, at least for us. I don't know if the kernel has made internal modifications to cause crash.

The crash log is as follows:

Image

@DavidingPlus
Copy link
Owner Author

相关的 git 提交历史:

  1. 加上 const 限定符:60540dd
  2. 版本回退:41f954b

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Related git commit history:

  1. Add const qualifier: 60540dd
  2. Version fallback: 41f954b

Repository owner deleted a comment from Issues-translate-bot Mar 13, 2025
@DavidingPlus
Copy link
Owner Author

这个问题是无意间发现的,对项目整体没有影响,有兴趣可以继续深究。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


This problem was discovered by accident and has no impact on the overall project. If you are interested, you can continue to investigate.

@DavidingPlus DavidingPlus added the wontfix This will not be worked on label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants