diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-01-10 12:40:04 +0300 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2018-01-10 17:21:39 +0300 |
commit | 0d9cac0ca0429830c40fe1a4e50e60f6221fd7b6 (patch) | |
tree | b7de610a963347d9dfaa6bacf8cfb2ab3bf7220b /drivers/md/dm-stripe.c | |
parent | 98648ae6ef6bdcdcb88c46cad963906ab452e96d (diff) | |
download | linux-0d9cac0ca0429830c40fe1a4e50e60f6221fd7b6.tar.xz |
drm/vmwgfx: Potential off by one in vmw_view_add()
The vmw_view_cmd_to_type() function returns vmw_view_max (3) on error.
It's one element beyond the end of the vmw_view_cotables[] table.
My read on this is that it's possible to hit this failure. header->id
comes from vmw_cmd_check() and it's a user controlled number between
1040 and 1225 so we can hit that error. But I don't have the hardware
to test this code.
Fixes: d80efd5cb3de ("drm/vmwgfx: Initial DX support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Cc: <stable@vger.kernel.org>
Diffstat (limited to 'drivers/md/dm-stripe.c')
0 files changed, 0 insertions, 0 deletions