aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorStefan Hajnoczi <[email protected]>2021-05-24 16:40:20 +0100
committerMichael S. Tsirkin <[email protected]>2021-07-03 04:50:53 -0400
commit63947b3434f475418b9677a393d025c0962c2cf8 (patch)
tree96114c339dce8f5912b75e40f65277fccff4cca5 /scripts/gdb/linux/tasks.py
parent7a43ce37cd595ed7b6e6a48bdb3a598e647aa738 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions