user2158345
user2158345

Reputation: 45

kmalloc function and protection (READ,WRITE,EXEC)

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.

Upvotes: 2

Views: 930

Answers (1)

suneet saini
suneet saini

Reputation: 610

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

Upvotes: 1

Related Questions