]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
xen-gntdev: integer overflow in gntdev_alloc_map()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 4 Nov 2011 18:23:32 +0000 (21:23 +0300)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 16 Nov 2011 17:13:46 +0000 (12:13 -0500)
commitfc6e0c3b909157748ce1c0c0f2a9935a5ee3c812
treefb1829a10aead11d62b4ca6c873936e63c06cbb7
parent90d4f5534d14815bd94c10e8ceccc57287657ecc
xen-gntdev: integer overflow in gntdev_alloc_map()

The multiplications here can overflow resulting in smaller buffer
sizes than expected.  "count" comes from a copy_from_user().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/gntdev.c