TransWikia.com

When does kernel accessing virtual memory cause problems

Computer Science Asked by Programming_Zeus on December 6, 2020

I’m working with the CPU Pintos and have a question that is:

In which situations can the kernel accessing the data in virtual memory via a pointer lead to problems? And how do you avoid them?

I know that the kernel can access the virtual memory via pointers to the stack, but don’t understand when errors may occur.

One Answer

Same as with any program that uses pointers: dereferencing one that points nowhere sane will give grief. If in the kernel of the system, with little or no protection against accidents (and nobody who can clean up the mess afterwards), it is much worse.

Answered by vonbrand on December 6, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP