进程如何尝试访问Linux虚拟内存系统中其他进程的内存 [英] How can a process try to access other process's memory in Linux virtual memory system

查看:66
本文介绍了进程如何尝试访问Linux虚拟内存系统中其他进程的内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Linux中学习虚拟内存系统时,只是感到困惑.

Just got confused when I am learning the virtual memory system in Linux.

由于每个进程都有自己的虚拟地址空间和自己的页表,将其虚拟地址转换为物理地址(是吗?),它怎么可能试图错误地访问其他进程的内存?页面表中应该没有条目,对吧?

Since each process has its own virtual address space and its own page table translating its virtual address to physical address(am I right?), how can it possibly try to falsely access other process's memory? There should be no entry in the page table, right?

推荐答案

除非特别安排,否则一个进程不应有任何虚拟地址可以访问,这将修改分配给另一进程的内存.

Unless specifically arranged, there should be no virtual address one process can access that will modify memory assigned to another process.

这篇关于进程如何尝试访问Linux虚拟内存系统中其他进程的内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆