Abstract
- The above diagram illustrates the Address Space of a Process (进程) under Linux Kernel
What is the random offset for?
The random offsets enhance security, as you never know exactly where a certain piece of data or code will be
Virtual Memory in Linux
- Each process receives its own page table, which manages the mapping of virtual memory pages to physical memory frames
- The kernel ensures that memory pages from different processes map to the same physical frame only when data sharing between those processes is explicitly desired