summaryrefslogtreecommitdiff
path: root/include/drm/ttm/ttm_page_alloc.h
diff options
context:
space:
mode:
authorMurray McAllister <murray.mcallister@insomniasec.com>2017-03-27 09:15:12 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-12 10:41:10 (GMT)
commit604d2eac67cb3518aa6a236ec505fbe7c60947af (patch)
treecbb3e197334395e5455963e170d5b5e60de966cf /include/drm/ttm/ttm_page_alloc.h
parent73ab72517b61ce4b27ceddec47dd5d6edafb556a (diff)
downloadlinux-604d2eac67cb3518aa6a236ec505fbe7c60947af.tar.xz
drm/vmwgfx: avoid calling vzalloc with a 0 size in vmw_get_cap_3d_ioctl()
commit 63774069d9527a1aeaa4aa20e929ef5e8e9ecc38 upstream. In vmw_get_cap_3d_ioctl(), a user can supply 0 for a size that is used in vzalloc(). This eventually calls dump_stack() (in warn_alloc()), which can leak useful addresses to dmesg. Add check to avoid a size of 0. Signed-off-by: Murray McAllister <murray.mcallister@insomniasec.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/drm/ttm/ttm_page_alloc.h')
0 files changed, 0 insertions, 0 deletions