Jiri Slaby b513b0d456 drm/virtio: fix OOB in virtio_gpu_object_create
After commit f651c8b05542 ("drm/virtio: factor out the sg_table from
virtio_gpu_object"), virtio_gpu_create_object allocates too small space
to fit everything in. It is because it allocates struct
virtio_gpu_object, but should allocate a newly added struct
virtio_gpu_object_shmem which has 2 more members.

So fix that by using correct type in virtio_gpu_create_object.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: http://patchwork.freedesktop.org/patch/msgid/20200319100421.16267-1-jslaby@suse.cz
Fixes: f651c8b05542 ("drm/virtio: factor out the sg_table from virtio_gpu_object")
Cc: Gurchetan Singh <gurchetansingh@chromium.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 0666a8d7f6a4530440e59f2d22ed4091f4d3818c)
2020-04-06 15:10:37 +02:00
..
2020-03-21 18:56:06 -07:00
2020-02-06 06:11:50 +00:00
2020-03-09 16:02:32 -07:00
2020-02-08 14:04:19 -08:00
2020-03-15 12:42:03 -07:00
2020-03-15 10:53:11 +01:00
2020-03-07 14:14:38 -06:00
2020-01-16 10:45:44 -08:00
2020-02-04 07:17:41 +00:00
2020-01-27 13:03:00 -08:00
2019-12-16 11:49:54 +01:00
2020-03-04 13:28:52 +01:00
2020-02-08 13:55:25 -08:00
2020-03-06 14:48:30 -06:00
2020-03-13 12:45:23 -07:00
2020-03-06 14:50:16 -06:00
2020-03-20 09:20:38 -07:00
2020-01-31 11:28:31 -08:00
2020-03-18 10:42:57 +01:00
2020-02-03 22:22:05 +00:00
2020-01-29 10:35:54 -08:00
2020-01-29 10:35:54 -08:00
2020-03-05 09:42:23 -06:00
2020-02-09 16:05:50 -08:00