Re: [PATCH] uio: Fix memory size check with vma in uio_mmap_physical()

2014-03-20 Thread Nobuhiro Iwamatsu
(2014/03/18 8:26), Greg KH wrote: On Wed, Mar 12, 2014 at 10:24:21AM +0900, Nobuhiro Iwamatsu wrote: Register for the device are mapped in uio_mmap_physical(). In this case, it might not be the same as the size of VMA always. Why wouldn't this be the case? size contained in the "mem-> size"

Re: [PATCH] uio: Fix memory size check with vma in uio_mmap_physical()

2014-03-20 Thread Nobuhiro Iwamatsu
(2014/03/18 8:26), Greg KH wrote: On Wed, Mar 12, 2014 at 10:24:21AM +0900, Nobuhiro Iwamatsu wrote: Register for the device are mapped in uio_mmap_physical(). In this case, it might not be the same as the size of VMA always. Why wouldn't this be the case? size contained in the mem- size is

Re: [PATCH] uio: Fix memory size check with vma in uio_mmap_physical()

2014-03-17 Thread Greg KH
On Wed, Mar 12, 2014 at 10:24:21AM +0900, Nobuhiro Iwamatsu wrote: > Register for the device are mapped in uio_mmap_physical(). > In this case, it might not be the same as the size of VMA always. Why wouldn't this be the case? > This uses PAGE_ALIGN to memory size, fix the check of the memory

Re: [PATCH] uio: Fix memory size check with vma in uio_mmap_physical()

2014-03-17 Thread Greg KH
On Wed, Mar 12, 2014 at 10:24:21AM +0900, Nobuhiro Iwamatsu wrote: Register for the device are mapped in uio_mmap_physical(). In this case, it might not be the same as the size of VMA always. Why wouldn't this be the case? This uses PAGE_ALIGN to memory size, fix the check of the memory size

[PATCH] uio: Fix memory size check with vma in uio_mmap_physical()

2014-03-11 Thread Nobuhiro Iwamatsu
Register for the device are mapped in uio_mmap_physical(). In this case, it might not be the same as the size of VMA always. This uses PAGE_ALIGN to memory size, fix the check of the memory size to be mapped. Signed-off-by: Nobuhiro Iwamatsu --- drivers/uio/uio.c | 2 +- 1 file changed, 1

[PATCH] uio: Fix memory size check with vma in uio_mmap_physical()

2014-03-11 Thread Nobuhiro Iwamatsu
Register for the device are mapped in uio_mmap_physical(). In this case, it might not be the same as the size of VMA always. This uses PAGE_ALIGN to memory size, fix the check of the memory size to be mapped. Signed-off-by: Nobuhiro Iwamatsu nobuhiro.iwamatsu...@renesas.com --- drivers/uio/uio.c