aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorDaniel De Graaf <[email protected]>2013-01-02 22:57:11 +0000
committerKonrad Rzeszutek Wilk <[email protected]>2013-01-15 21:01:06 +0000
commit2512f298cb9886e06938e761c9e924c8448d9ab8 (patch)
tree959938beb9ef789e72217844d159c95604817ac5 /net/unix/garbage.c
parentxen/privcmd: Fix mmap batch ioctl. (diff)
downloadkernel-2512f298cb9886e06938e761c9e924c8448d9ab8.tar.gz
kernel-2512f298cb9886e06938e761c9e924c8448d9ab8.zip
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 <[email protected]> Reported-by: Al Viro <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions