diff options
author | Murray McAllister <murray.mcallister@insomniasec.com> | 2017-03-27 09:15:12 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-12 10:41:10 (GMT) |
commit | 604d2eac67cb3518aa6a236ec505fbe7c60947af (patch) | |
tree | cbb3e197334395e5455963e170d5b5e60de966cf /crypto/dh.c | |
parent | 73ab72517b61ce4b27ceddec47dd5d6edafb556a (diff) | |
download | linux-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 'crypto/dh.c')
0 files changed, 0 insertions, 0 deletions