linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Handling of VM_IO vma in omap_vout_uservirt_to_phys()
@ 2013-10-17 22:16 Jan Kara
  2013-10-18  9:29 ` Archit Taneja
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kara @ 2013-10-17 22:16 UTC (permalink / raw)
  To: linux-media; +Cc: Tomi Valkeinen, Mauro Carvalho Chehab

  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 this is a generally valid computation for arbitrary
VM_IO vma. So do we expect vma to come from a particular source where this
is true? If yes, where do we expect vma comes from? Thanks for
clarification.

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-21  9:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-17 22:16 Handling of VM_IO vma in omap_vout_uservirt_to_phys() Jan Kara
2013-10-18  9:29 ` Archit Taneja
2013-10-18 13:11   ` Jan Kara
2013-10-21  9:17     ` Archit Taneja

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).