summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/virtio/virtgpu_vq.c
diff options
context:
space:
mode:
authorDavid Riley2019-06-06 01:44:20 +0200
committerGerd Hoffmann2019-06-06 09:44:40 +0200
commit7fdf478a43869bee27e1b50955830f6ebc730b67 (patch)
tree153bfa07887ea8f1b5b73f0a6675072626b79896 /drivers/gpu/drm/virtio/virtgpu_vq.c
parentdrm/bridge/synopsys: dw-hdmi: Add "unwedge" for ddc bus (diff)
downloadkernel-qcow2-linux-7fdf478a43869bee27e1b50955830f6ebc730b67.tar.gz
kernel-qcow2-linux-7fdf478a43869bee27e1b50955830f6ebc730b67.tar.xz
kernel-qcow2-linux-7fdf478a43869bee27e1b50955830f6ebc730b67.zip
drm/virtio: Ensure cached capset entries are valid before copying.
virtio_gpu_get_caps_ioctl could return success with invalid data if a second caller to the function occurred after the entry was created in virtio_gpu_cmd_get_capset but prior to the virtio_gpu_cmd_capset_cb callback being called. This could leak contents of memory as well since the caps_cache allocation is done without zeroing. Signed-off-by: David Riley <davidriley@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/20190605234423.11348-1-davidriley@chromium.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/virtio/virtgpu_vq.c')
0 files changed, 0 insertions, 0 deletions