how would you answer this question?
This is not a real programming question, but it's about linux..
At high level, how would you answer the following question:
"What does it happen in Linux when a process (running in User Mode) tries to address a byte of memory belonging to the address space reserved to the Kernel?"
I'd answer like this:
"The paging circuit will lookup the PAGE DIRECTORY of the process and, not finding the requested address, will raise a PAGE FAULT. The page fault handler will then find out that the address doesn't belong to the process' address space and then terminate the process".
I don't know if the USER/SUPERVISOR flag plays some role in this case..?
Thanks for your comments! Bye!