RE: [PATCH v3] arm: ioremap: Fix static vm area boundary check.

2014-05-19 Thread Nicolas Pitre
On Mon, 19 May 2014, li.xi...@freescale.com wrote: > > > For each vmalloc area, there is one guard page at the end of it. > > > so the vm->size = PAGE_ALIGN(offset + request size) + guard page size. > > > > Nope. There is no guard page for statically created vmalloc areas. > > > > Yes, you are

RE: [PATCH v3] arm: ioremap: Fix static vm area boundary check.

2014-05-18 Thread li.xi...@freescale.com
> > For each vmalloc area, there is one guard page at the end of it. > > so the vm->size = PAGE_ALIGN(offset + request size) + guard page size. > > Nope. There is no guard page for statically created vmalloc areas. > Yes, you are right, I'm thinking why the static area has no guard page? Thank

Re: [PATCH v3] arm: ioremap: Fix static vm area boundary check.

2014-05-16 Thread Nicolas Pitre
On Fri, 16 May 2014, Xiubo Li wrote: > For each vmalloc area, there is one guard page at the end of it. > so the vm->size = PAGE_ALIGN(offset + request size) + guard page size. Nope. There is no guard page for statically created vmalloc areas. > Signed-off-by: Richard Lee > Signed-off-by: Xiu