Re: Handling of VM_IO vma in omap_vout_uservirt_to_phys()

2013-10-21 Thread Archit Taneja
On Friday 18 October 2013 06:41 PM, Jan Kara wrote: On Fri 18-10-13 14:59:17, Archit Taneja wrote: Hi, On Friday 18 October 2013 03:46 AM, Jan Kara wrote: Hello, I was auditing get_user_pages() users and I've noticed that omap_vout_uservirt_to_phys() is apparently called for arbitrary a

Re: Handling of VM_IO vma in omap_vout_uservirt_to_phys()

2013-10-18 Thread Jan Kara
On Fri 18-10-13 14:59:17, Archit Taneja wrote: > Hi, > > On Friday 18 October 2013 03:46 AM, Jan Kara wrote: > > Hello, > > > > I was auditing get_user_pages() users and I've noticed that > >omap_vout_uservirt_to_phys() is apparently called for arbitrary address > >passed from userspace. If th

Re: Handling of VM_IO vma in omap_vout_uservirt_to_phys()

2013-10-18 Thread Archit Taneja
Hi, On Friday 18 October 2013 03:46 AM, Jan Kara wrote: Hello, I was auditing get_user_pages() users and I've noticed that omap_vout_uservirt_to_phys() is apparently called for arbitrary address passed from userspace. If this address is in VM_IO vma, we use vma->vm_pgoff for mapping the v

Handling of VM_IO vma in omap_vout_uservirt_to_phys()

2013-10-17 Thread Jan Kara
Hello, I was auditing get_user_pages() users and I've noticed that omap_vout_uservirt_to_phys() is apparently called for arbitrary address passed from userspace. If this address is in VM_IO vma, we use vma->vm_pgoff for mapping the virtual address to a physical address. However I don't think t