diff options
| author | Vladis Dronov <vdronov@redhat.com> | 2017-06-02 07:42:09 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-14 13:16:25 +0200 |
| commit | 619cc02fd85d69270c95e7db320b305e975aae00 (patch) | |
| tree | dc8c4beca87e57bb1a03e3dd4d041e34e05c6b2d /tools/perf/scripts/python | |
| parent | e4c05b3a751a6b10b7cf7c5a8cbd34571a10360f (diff) | |
drm/vmwgfx: limit the number of mip levels in vmw_gb_surface_define_ioctl()
commit ee9c4e681ec4f58e42a83cb0c22a0289ade1aacf upstream.
The 'req->mip_levels' parameter in vmw_gb_surface_define_ioctl() is
a user-controlled 'uint32_t' value which is used as a loop count limit.
This can lead to a kernel lockup and DoS. Add check for 'req->mip_levels'.
References:
https://bugzilla.redhat.com/show_bug.cgi?id=1437431
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
