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

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 right, I'm

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?

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? Thanks very

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:

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 superlibj8...@gmail.com