问题
I have a question regarding kmalloc function (found in the linux kernel) and protection:
- What is the default protection (write/read/exec) for an allocated memory created by kmalloc?
- How can I change the allocated region's protection? (from kernel mode)
- 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