Dan Carpenter
08a7525811
drm/vmwgfx: Potential off by one in vmw_view_add()
...
commit 0d9cac0ca0429830c40fe1a4e50e60f6221fd7b6 upstream.
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: d80efd5cb3 ("drm/vmwgfx: Initial DX support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com >
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2018-01-17 09:38:54 +01:00
..
2017-12-20 10:07:21 +01:00
2016-11-11 04:31:35 +03:00
2017-11-15 15:53:13 +01:00
2017-12-14 09:28:16 +01:00
2017-07-05 14:40:17 +02:00
2016-09-28 12:08:49 +10:00
2016-09-28 13:23:07 +10:00
2017-11-15 15:53:20 +01:00
2016-10-26 16:48:01 +10:00
2017-10-05 09:44:03 +02:00
2017-12-14 09:28:14 +01:00
2017-12-09 22:01:46 +01:00
2017-06-07 12:07:49 +02:00
2017-12-05 11:24:35 +01:00
2016-09-23 03:29:50 -07:00
2017-12-05 11:24:35 +01:00
2017-03-15 10:02:50 +08:00
2017-11-30 08:39:13 +00:00
2017-04-12 12:41:20 +02:00
2017-11-21 09:23:26 +01:00
2017-11-08 10:08:32 +01:00
2017-10-27 10:38:07 +02:00
2017-12-20 10:07:20 +01:00
2017-12-05 11:24:34 +01:00
2016-09-28 13:23:07 +10:00
2017-12-20 10:07:23 +01:00
2017-08-30 10:21:48 +02:00
2016-10-04 08:23:17 +02:00
2017-01-19 20:17:58 +01:00
2017-11-21 09:23:23 +01:00
2017-11-30 08:39:10 +00:00
2017-01-19 20:17:58 +01:00
2016-09-28 11:17:26 +10:00
2017-12-05 11:24:35 +01:00
2016-11-11 08:57:34 +10:00
2017-06-24 07:11:14 +02:00
2016-09-22 04:03:48 -07:00
2016-10-19 08:11:43 -07:00
2017-08-11 08:49:35 -07:00
2018-01-17 09:38:54 +01:00
2017-03-30 09:41:28 +02:00
2017-08-30 10:21:48 +02:00
2016-09-22 00:04:02 -07:00
2016-09-19 15:04:15 +02:00
2016-09-21 13:24:27 +02:00
2016-09-22 00:04:03 -07:00
2017-06-17 06:41:53 +02:00
2016-09-19 16:45:15 +02:00
2016-09-22 00:04:02 -07:00
2016-09-22 00:04:02 -07:00
2016-10-11 18:12:22 -07:00
2017-07-27 15:08:07 -07:00
2017-11-15 15:53:12 +01:00
2017-05-25 15:44:48 +02:00
2016-09-21 13:33:50 +02:00
2017-03-15 10:02:50 +08:00
2017-03-30 09:41:28 +02:00
2016-09-22 00:01:56 -07:00
2017-08-30 10:21:47 +02:00
2016-09-14 15:10:29 -04:00
2016-10-17 16:20:53 +10:00
2016-09-19 13:57:38 +02:00
2016-09-19 13:57:38 +02:00
2016-11-30 10:13:00 +01:00
2017-01-19 20:18:06 +01:00
2017-11-30 08:39:13 +00:00
2016-09-12 10:32:49 -04:00
2017-02-01 08:33:02 +01:00
2016-09-22 04:03:48 -07:00
2016-10-04 12:53:12 +10:00
2016-09-22 04:03:48 -07:00
2016-10-10 11:19:42 +02:00
2017-02-01 08:33:02 +01:00
2016-10-05 15:18:02 +02:00
2016-09-19 13:57:38 +02:00
2016-09-19 11:22:08 +02:00
2016-09-22 00:04:02 -07:00