]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen-gntalloc: integer overflow in gntalloc_ioctl_alloc()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 4 Nov 2011 18:24:08 +0000 (21:24 +0300)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 15 Nov 2011 16:09:51 +0000 (11:09 -0500)
commitb63522c84f023215ad4f8166da31b1fbf87744a1
tree55be67cfd015700a4f07aa708c85d50c22575794
parentd4f6b6aab8b68783a37092058914a3a3d9de32e4
xen-gntalloc: integer overflow in gntalloc_ioctl_alloc()

On 32 bit systems a high value of op.count could lead to an integer
overflow in the kzalloc() and gref_ids would be smaller than
expected.  If the you triggered another integer overflow in
"if (gref_size + op.count > limit)" then you'd probably get memory
corruption inside add_grefs().

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