summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2021-05-24 18:40:20 +0300
committerMichael S. Tsirkin <mst@redhat.com>2021-07-03 11:50:53 +0300
commit63947b3434f475418b9677a393d025c0962c2cf8 (patch)
tree96114c339dce8f5912b75e40f65277fccff4cca5 /tools/perf/scripts/python/export-to-sqlite.py
parent7a43ce37cd595ed7b6e6a48bdb3a598e647aa738 (diff)
downloadlinux-63947b3434f475418b9677a393d025c0962c2cf8.tar.xz
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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions