aboutsummaryrefslogtreecommitdiff
path: root/include/linux/timer.h
diff options
context:
space:
mode:
authorMurray McAllister <murray.mcallister@insomniasec.com>2017-03-27 11:15:12 +0200
committerMister Oyster <oysterized@gmail.com>2017-07-04 12:11:17 +0200
commitb2b98051a7d8b2ba71924ce7f488c9c559b91722 (patch)
tree3aaf7fd075ba9bb5bb6f0d5de46d71cf4d68c571 /include/linux/timer.h
parent582bafb3b06c80a4ae10a9512d31fb993502ad17 (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: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/linux/timer.h')
0 files changed, 0 insertions, 0 deletions