Re: What will happen if 2 processes map same physical page

2019-03-21 Thread Okash Khawaja
On Thu, 21 Mar 2019 12:56:17 +0300 Lev Olshvang wrote: > Hi Vaaldis, > > Thanks for answer, > I still wondering whether the kernel will allow write to a read-only > page of shared library while it has mapped to several processes? > Kernel knows that page's reference count >1, will it allow > mm

Re: What will happen if 2 processes map same physical page

2019-03-21 Thread Lev Olshvang
Hi Vaaldis, Thanks for answer, I still wondering whether the kernel will allow write to a read-only page of shared library while it has mapped to several processes? Kernel knows that page's reference count >1, will it allow mmap/mprotect to change page protection ? Or will it allow direct righ