aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2021-05-24 16:40:20 +0100
committerMichael S. Tsirkin <mst@redhat.com>2021-07-03 04:50:53 -0400
commit63947b3434f475418b9677a393d025c0962c2cf8 (patch)
tree96114c339dce8f5912b75e40f65277fccff4cca5 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h
parentvhost: Remove the repeated declaration (diff)
downloadwireguard-linux-63947b3434f475418b9677a393d025c0962c2cf8.tar.xz
wireguard-linux-63947b3434f475418b9677a393d025c0962c2cf8.zip
virtio-blk: limit seg_max to a safe value
The struct virtio_blk_config seg_max value is read from the device and incremented by 2 to account for the request header and status byte descriptors added by the driver. In preparation for supporting untrusted virtio-blk devices, protect against integer overflow and limit the value to a safe maximum. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Link: https://lore.kernel.org/r/20210524154020.98195-1-stefanha@redhat.com Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h')
0 files changed, 0 insertions, 0 deletions