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!

Related Questions

Does the set ALL_TM contain all Turing Machines?

1  Asked on January 18, 2021 by mkultra


Irregularity of ${0^x1^y : y nmid x}$

2  Asked on January 7, 2021 by matt-kolson


2-dimensional ranking of multiple arrays

1  Asked on January 6, 2021 by albert-hendriks


Lambda calculus simplification excercise

1  Asked on January 1, 2021 by user126373


Calculating the set field of associative cache

2  Asked on January 1, 2021 by user3125670


Are assembly languages untyped?

5  Asked on December 20, 2020 by a-sallai


DFA and equivalence relation

1  Asked on December 14, 2020 by nimrod


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir