Files
twx-linux/drivers
Murray McAllister 604d2eac67 drm/vmwgfx: avoid calling vzalloc with a 0 size in vmw_get_cap_3d_ioctl()
commit 63774069d9 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>
2017-04-12 12:41:10 +02:00
..
…
…
…
…
2017-03-12 06:41:45 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-02-23 17:44:36 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-03-30 09:41:24 +02:00
2017-03-30 09:41:28 +02:00
…
…
…