-1

During process execution, when the memory map of a process is like so:

enter image description here

This might be a silly question, but what is responsible for reserving the Kernel space in the address space? Are user processes responsible for this? privileged processes? all processes?

From my understanding, the kernel memory space is reserved by the process running but it is only accessible by the CPU when instructed to execute under ring 0. Is this correct ?

dexray
  • 3

2 Answers2

0

This (very simplified) memory map is from times long past, in operating systems far, far away. Today pieces can be mapped at random into the address space (one interesting example is the Linux kernel variable containing current time, for performance of programs requesting it very frequently), and the address space of a program is lots of pieces, scattered all over the (logical) address space. For example, each shared library has it's own swath of memory assigned.

vonbrand
  • 18,253