Re: a question about protection_map[]

2016-07-11 Thread Kirill A. Shutemov
On Tue, Jul 12, 2016 at 09:31:30AM +0800, Xishi Qiu wrote: > On 2016/7/11 21:30, Kirill A. Shutemov wrote: > > > On Mon, Jul 11, 2016 at 06:12:30PM +0800, Xishi Qiu wrote: > >> Hi, > >> > >> We can use mprotect to set read only or read/write. > >> > >> mprotect_fixup() > >>vma_set_page_prot()

Re: a question about protection_map[]

2016-07-11 Thread Xishi Qiu
On 2016/7/11 21:30, Kirill A. Shutemov wrote: > On Mon, Jul 11, 2016 at 06:12:30PM +0800, Xishi Qiu wrote: >> Hi, >> >> We can use mprotect to set read only or read/write. >> >> mprotect_fixup() >> vma_set_page_prot() >> vm_pgprot_modify() >> vm_get_page_prot

Re: a question about protection_map[]

2016-07-11 Thread Kirill A. Shutemov
On Mon, Jul 11, 2016 at 06:12:30PM +0800, Xishi Qiu wrote: > Hi, > > We can use mprotect to set read only or read/write. > > mprotect_fixup() > vma_set_page_prot() > vm_pgprot_modify() > vm_get_page_prot() > protection_map[vm