Skip to content

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

@DavidingPlus

Description

@DavidingPlus

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

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

崩溃日志如下:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions