WSL2-Linux-Kernel/drivers/uio
Bin Wang ddb09754e6 uio: fix vma io range check in mmap
the vma range size is always page size aligned in mmap, while the
real io space range may not be page aligned, thus leading to range
check failure in the uio_mmap_physical().

for example, in a case of io range size "mem->size == 1KB", and we
have (vma->vm_end - vma->vm_start) == 4KB, due to "len" is aligned
to page size in do_mmap_pgoff().

now fix this issue by align mem->size to page size in the check.

Signed-off-by: Bin Wang <binw@marvell.com>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-27 14:11:06 -07:00
..
Kconfig
Makefile
uio.c uio: fix vma io range check in mmap 2014-05-27 14:11:06 -07:00
uio_aec.c
uio_cif.c
uio_dmem_genirq.c drivers: uio_dmem_genirq: Fix memory leak in uio_dmem_genirq_probe() 2014-05-27 14:11:06 -07:00
uio_mf624.c uio: uio_mf624: remove DEFINE_PCI_DEVICE_TABLE macro 2013-12-08 22:41:48 -08:00
uio_netx.c
uio_pci_generic.c
uio_pdrv_genirq.c
uio_pruss.c
uio_sercos3.c