LKM 驻留在堆中吗?

Does LKM resides in Heap?

我知道内核使用 vmalloc()

加载可加载内核模块 (LKM)

假设整个 LKM 都驻留在堆中是否安全?

更准确地说,内核模块的内存是使用vmalloc_exec()分配的。

Is it safe to assume that entire LKMs are residing in heap?

这取决于您对 驻留在堆 中的期望。您可以假设内核模块元素的 none 驻留在内核内核中。