xen/privcmd: make sure vma is ours before doing anything to it
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Sun, 8 Mar 2009 11:10:00 +0000 (04:10 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 20 Oct 2010 23:22:32 +0000 (16:22 -0700)
commitf31fdf510531333dea95f0a92e6eaa1c3a7541e2
tree0a722a5f3ddc104db0b2c57e8ee7f192626aa22f
parent441c7416b55d3d48b4aaafc5bdd804092387d877
xen/privcmd: make sure vma is ours before doing anything to it

Test vma->vm_ops is our operations to make sure we created it.
We don't want to stomp on other random vmas.

[ Impact: bugfix; prevent ioctl from affecting other mappings ]

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/xen/xenfs/privcmd.c