[PATCH] ARM: VM: fix user page protection values (was Re: [PATCH] DEV: zero: use correct pgprot for zeromapping)

2007-02-10 Thread Imre Deak
On Sat, Feb 10, 2007 at 12:03:40PM +0200, Imre Deak wrote: > On Sat, Feb 10, 2007 at 09:39:54AM +, Russell King wrote: > > On Sat, Feb 10, 2007 at 11:15:21AM +0200, Imre Deak wrote: > > > Instead of PAGE_COPY use the pgprot bits established already at > > > original mapping time of the VMA. Thi

Re: [PATCH] DEV: zero: use correct pgprot for zeromapping

2007-02-10 Thread Imre Deak
On Sat, Feb 10, 2007 at 09:39:54AM +, Russell King wrote: > On Sat, Feb 10, 2007 at 11:15:21AM +0200, Imre Deak wrote: > > Instead of PAGE_COPY use the pgprot bits established already at > > original mapping time of the VMA. This will also include any > > architecture specific bits setup throug

Re: [PATCH] DEV: zero: use correct pgprot for zeromapping

2007-02-10 Thread Russell King
On Sat, Feb 10, 2007 at 11:15:21AM +0200, Imre Deak wrote: > Instead of PAGE_COPY use the pgprot bits established already at > original mapping time of the VMA. This will also include any > architecture specific bits setup through protection_map. > zeromap_page_range will take care of COW'ing the p

[PATCH] DEV: zero: use correct pgprot for zeromapping

2007-02-10 Thread Imre Deak
Instead of PAGE_COPY use the pgprot bits established already at original mapping time of the VMA. This will also include any architecture specific bits setup through protection_map. zeromap_page_range will take care of COW'ing the passed pgprot. This fixes at least one problem on ARM where reading