From: Daniel De Graaf Date: Wed, 2 Jan 2013 22:57:11 +0000 (+0000) Subject: xen/gntdev: fix unsafe vma access X-Git-Tag: v3.8-rc5~41^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2512f298cb9886e06938e761c9e924c8448d9ab8;p=pandora-kernel.git xen/gntdev: fix unsafe vma access In gntdev_ioctl_get_offset_for_vaddr, we need to hold mmap_sem while calling find_vma() to avoid potentially having the result freed out from under us. Similarly, the MMU notifier functions need to synchronize with gntdev_vma_close to avoid map->vma being freed during their iteration. Signed-off-by: Daniel De Graaf Reported-by: Al Viro Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed