Kernel heap question
Posted: Sat Apr 20, 2019 11:07 am
Hi, I am currently trying to implement a heap for my kernel, however I was wondering about one thing concerning security.
In my kernel, paging is enabled and the heap is going from 0x100000 to 0x150000 in physical memory.
My question is: Is it ok to map all pages concerning heap in the kernel page table at the beginning or is it better/safer to map pages as the heap grows?
I hope my question was clear.
In my kernel, paging is enabled and the heap is going from 0x100000 to 0x150000 in physical memory.
My question is: Is it ok to map all pages concerning heap in the kernel page table at the beginning or is it better/safer to map pages as the heap grows?
I hope my question was clear.