kmalloc function and protection (READ,WRITE,EXEC)

心不动则不痛 提交于 2020-01-04 13:45:08

问题


I have a question regarding kmalloc function (found in the linux kernel) and protection:

  1. What is the default protection (write/read/exec) for an allocated memory created by kmalloc?
  2. How can I change the allocated region's protection? (from kernel mode)
  3. How can I find all kernel allocated memory and its protection?

Thanks.


回答1:


Kmalloc is just an interface to the REAL memory manager, the kmem cache allocator.



来源:https://stackoverflow.com/questions/15347858/kmalloc-function-and-protection-read-write-exec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!