What will happen if 2 processes map same physical page

Lev Olshvang <levonshe-zJpx2rpV7r/[email protected]> Wed, 20 Mar 2019 16:42:39 +0300
Newsgroups gmane.linux.region.israel,gmane.linux.kernel.kernelnewbies
Message-ID <[email protected]>
Hi all,

The question is it ipossiblle in Linux/MMU/TLB  that 2 processes map to the same physical address?
Will CPU or  TLB discover that second process tries to reach occupied physical page?

What if first process set page permission to read and second whats to write to this page ?
Perhaps during context switch all page access permissions of first process is flashed out from MMU ?


I confess I do not know what exactly happens in TLB and between Linux and hardware view of pages.

I am particularly intereste in ARMv7, perhaps its architecture have some solutions to these question.

Regards,
Lev



_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il