diff options
author | Murray McAllister <murray.mcallister@insomniasec.com> | 2017-03-27 11:15:12 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-22 07:14:59 +0200 |
commit | cc4856f61469c7f46de1d9360a2e1076b7e4d1d5 (patch) | |
tree | 92e31f079f37596a32cbc11dafd73243f4f82a6a /include | |
parent | 6e7f776a49aabe3c734f9d94ba2522961a91c6b7 (diff) |
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')
0 files changed, 0 insertions, 0 deletions