-
Notifications
You must be signed in to change notification settings - Fork 0
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
Comments
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: |
这个问题是无意间发现的,对项目整体没有影响,有兴趣可以继续深究。 |
This problem was discovered by accident and has no impact on the overall project. If you are interested, you can continue to investigate. |
将需要注册给内核的各种 operations 的结构体示例前加上 const 限定符以后,内核模块卸载的时候内核会崩溃。
我的本意是不想让可能的因素修改掉这些 operations,这些东西从语义上来讲应该是不变的,至少对我们而言。不知道内核是否在内部做了修改导致崩溃。
崩溃日志如下:
The text was updated successfully, but these errors were encountered: