From: Xi Wang Date: Wed, 23 Nov 2011 06:12:01 +0000 (-0500) Subject: drm: integer overflow in drm_mode_dirtyfb_ioctl() X-Git-Tag: v3.2-rc3~8^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5cd335165e31db9dbab636fd29895d41da55dd2;p=pandora-kernel.git drm: integer overflow in drm_mode_dirtyfb_ioctl() There is a potential integer overflow in drm_mode_dirtyfb_ioctl() if userspace passes in a large num_clips. The call to kmalloc would allocate a small buffer, and the call to fb->funcs->dirty may result in a memory corruption. Reported-by: Haogang Chen Signed-off-by: Xi Wang Cc: stable@kernel.org Signed-off-by: Dave Airlie --- Reading git-diff-tree failed